We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 10cb679 + 5eda5b5 commit c99c12dCopy full SHA for c99c12d
iOS_SDK/OneSignalSDK/Source/OneSignal.m
@@ -955,7 +955,9 @@ + (BOOL)registerForAPNsToken {
955
[OneSignal onesignal_Log:ONE_S_LL_VERBOSE message:@"Firing registerForRemoteNotifications"];
956
957
waitingForApnsResponse = true;
958
- [[UIApplication sharedApplication] registerForRemoteNotifications];
+ [OneSignalHelper dispatch_async_on_main_queue:^{
959
+ [[UIApplication sharedApplication] registerForRemoteNotifications];
960
+ }];
961
962
return true;
963
}
0 commit comments