You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!appId || ![[NSUUIDalloc] initWithUUIDString:appId]) {
297
-
[OneSignalLog onesignalLog:ONE_S_LL_FATAL message:@"OneSignal AppIdformat is invalid.\nExample: 'b2f7f966-d8cc-11e4-bed1-df8f05be55ba'\n"];
290
+
[OneSignalLog onesignalLog:ONE_S_LL_FATAL message:[NSStringstringWithFormat:@"OneSignal AppId: %@ - AppId is null or format is invalid, stopping initialization.\nExample usage: 'b2f7f966-d8cc-11e4-bed1-df8f05be55ba'\n", appId]];
298
291
returnfalse;
299
292
}
300
293
returntrue;
@@ -462,17 +455,16 @@ + (void)startUserManager {
462
455
+ (void)delayInitializationForPrivacyConsent {
463
456
[OneSignalLog onesignalLog:ONE_S_LL_VERBOSE message:@"Delayed initialization of the OneSignal SDK until the user provides privacy consent using the setPrivacyConsent() method"];
Called after setAppId and setLaunchOptions, depending on which one is called last (order does not matter)
473
465
*/
474
466
+ (void)init {
475
-
[OneSignalLog onesignalLog:ONE_S_LL_VERBOSE message:@"setLaunchOptions(launchOptions) successful and appId is set, initializing OneSignal..."];
467
+
[OneSignalLog onesignalLog:ONE_S_LL_VERBOSE message:[NSStringstringWithFormat:@"launchOptions is set and appId of %@is set, initializing OneSignal...", [OneSignalConfigManager getAppId]]];
476
468
477
469
// TODO: We moved this check to the top of this method, we should test this.
478
470
if (initDone) {
@@ -487,8 +479,8 @@ + (void)init {
487
479
488
480
// Wrapper SDK's call init twice and pass null as the appId on the first call
489
481
// the app ID is required to download parameters, so do not download params until the appID is provided
490
-
if (!_didCallDownloadParameters && appId && appId != (id)[NSNullnull])
491
-
[selfdownloadIOSParamsWithAppId:appId];
482
+
if (!_didCallDownloadParameters && [OneSignalConfigManager getAppId] && [OneSignalConfigManager getAppId] != (id)[NSNullnull])
0 commit comments