Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save digitaljerry/d9511d1cd7ae56403acfe72f093b89a5 to your computer and use it in GitHub Desktop.

Select an option

Save digitaljerry/d9511d1cd7ae56403acfe72f093b89a5 to your computer and use it in GitHub Desktop.
Appboy initilization in `application:didFinishLaunchingWithOptions:`
#pragma mark - Appboy
- (void)setupAppboyWithApplication:(UIApplication *)application launchingOptions:(NSDictionary *)launchOptions {
NSString *token = [[SFMainController shared] appTokenForKey:LAppboyToken];
if ([token isEqualToString:@""]) {
return;
}
NSMutableDictionary *appboyOptions = [NSMutableDictionary dictionary];
IDFADelegate *idfaDelegate = [[IDFADelegate alloc] init];
appboyOptions[ABKIDFADelegateKey] = idfaDelegate;
[Appboy startWithApiKey:token
inApplication:application
withLaunchOptions:launchOptions
withAppboyOptions:appboyOptions];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment