File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
iOS_SDK/OneSignalSDK/Source Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2089,9 +2089,6 @@ + (void)didRegisterForRemoteNotifications:(UIApplication *)app
20892089 if ([OneSignal shouldLogMissingPrivacyConsentErrorWithMethodName: nil ])
20902090 return ;
20912091
2092- if (!app_id)
2093- return ;
2094-
20952092 NSString *parsedDeviceToken = [NSString hexStringFromData: inDeviceToken];
20962093
20972094 [OneSignal onesignal_Log: ONE_S_LL_INFO message: [NSString stringWithFormat: @" Device Registered with Apple: %@ " , parsedDeviceToken]];
@@ -2102,6 +2099,9 @@ + (void)didRegisterForRemoteNotifications:(UIApplication *)app
21022099 }
21032100
21042101 waitingForApnsResponse = false ;
2102+
2103+ if (!app_id)
2104+ return ;
21052105
21062106 [OneSignal updateDeviceToken: parsedDeviceToken onSuccess: ^(NSDictionary * results) {
21072107 [OneSignal onesignal_Log: ONE_S_LL_INFO message: [NSString stringWithFormat: @" Device Registered with OneSignal: %@ " , self .currentSubscriptionState.userId]];
You can’t perform that action at this time.
0 commit comments