Created
July 2, 2018 13:20
-
-
Save digitaljerry/d9511d1cd7ae56403acfe72f093b89a5 to your computer and use it in GitHub Desktop.
Appboy initilization in `application:didFinishLaunchingWithOptions:`
This file contains hidden or 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
| #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