Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Jenovas
Created February 22, 2019 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jenovas/32b1b86eeeffdfdde2ee859cbce7800e to your computer and use it in GitHub Desktop.
Save Jenovas/32b1b86eeeffdfdde2ee859cbce7800e to your computer and use it in GitHub Desktop.
Pulsate SDK React - AppDelegate.m
#import <PULPulsate/PULPulsate.h>
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
PULAuthorizationData* authData = [[PULAuthorizationData alloc] initWithAppId:@"APP_ID" andAppKey:@"APP_KEY" validationError:nil];
PULPulsateManager* manager = [PULPulsateFactory getInstanceWithAuthorizationData:authData withLocationEnabled:YES withPushEnabled:YES withLaunchOptions:launchOptions withPulsateAppDelegate:YES andPulsateNotificationDelegate:YES error:nil];
[manager startPulsateSession:^(BOOL success, NSError * _Nullable error) {
}];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment