Created
February 22, 2019 15:25
-
-
Save Jenovas/32b1b86eeeffdfdde2ee859cbce7800e to your computer and use it in GitHub Desktop.
Pulsate SDK React - AppDelegate.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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