@@ -51,6 +51,8 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
5151
5252 NSLog (@" Bundle URL: %@ " , [[NSBundle mainBundle ] bundleURL ]);
5353
54+ [OneSignal initialize: [AppDelegate getOneSignalAppId ] withLaunchOptions: launchOptions];
55+
5456 [OneSignal.Debug setLogLevel: ONE_S_LL_VERBOSE];
5557 [OneSignal.Debug setVisualLevel: ONE_S_LL_NONE];
5658 _notificationDelegate = [OneSignalNotificationCenterDelegate new ];
@@ -80,7 +82,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
8082 // OneSignal Init with app id and lauch options
8183 [OneSignal setLaunchURLsInApp: YES ];
8284 [OneSignal setProvidesNotificationSettingsView: NO ];
83- [OneSignal initialize: [AppDelegate getOneSignalAppId ] withLaunchOptions: launchOptions];
85+
8486
8587 [OneSignal.Notifications requestPermission: ^(BOOL accepted) {
8688 NSLog (@" OneSignal Demo App requestPermission: %d " , accepted);
@@ -97,8 +99,8 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
9799 return YES ;
98100}
99101
100- #define ONESIGNAL_APP_ID_DEFAULT @" 0ba9731b-33bd-43f4-8b59-61172e27447d "
101- #define ONESIGNAL_APP_ID_KEY_FOR_TESTING @" ONESIGNAL_APP_ID_KEY_FOR_TESTING "
102+ #define ONESIGNAL_APP_ID_DEFAULT @" 1688d8f2-da7f-4815-8ee3-9d13788482c8 "
103+ #define ONESIGNAL_APP_ID_KEY_FOR_TESTING @" 1688d8f2-da7f-4815-8ee3-9d13788482c8 "
102104
103105+ (NSString *)getOneSignalAppId {
104106 NSString * userDefinedAppId = [[NSUserDefaults standardUserDefaults ] objectForKey: ONESIGNAL_APP_ID_KEY_FOR_TESTING];
0 commit comments