Skip to content

Commit 6034943

Browse files
committed
Moving the app_id nil check caused an issue with a test since it caused waitingForApnsResponse to not be false
1 parent 3e7707e commit 6034943

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

iOS_SDK/OneSignalSDK/Source/OneSignal.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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]];

0 commit comments

Comments
 (0)