Created
January 15, 2018 09:19
-
-
Save xtremepush-gists/7ee2f6f86486250d1735aa3acabad860 to your computer and use it in GitHub Desktop.
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
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
[XPush setAppKey: @"APP_KEY_FROM_THE_DASHBOARD"]; | |
[XPush registerForRemoteNotificationTypes:XPNotificationType_Alert | | |
XPNotificationType_Sound | XPNotificationType_Badge]; | |
#if DEBUG | |
[XPush setSandboxModeEnabled:YES]; | |
#endif | |
[XPush applicationDidFinishLaunchingWithOptions:launchOptions]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment