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.
1 parent 709f059 commit 5eda5b5Copy full SHA for 5eda5b5
iOS_SDK/OneSignalSDK/Source/OneSignal.m
@@ -947,7 +947,9 @@ + (BOOL)registerForAPNsToken {
947
[OneSignal onesignal_Log:ONE_S_LL_VERBOSE message:@"Firing registerForRemoteNotifications"];
948
949
waitingForApnsResponse = true;
950
- [[UIApplication sharedApplication] registerForRemoteNotifications];
+ [OneSignalHelper dispatch_async_on_main_queue:^{
951
+ [[UIApplication sharedApplication] registerForRemoteNotifications];
952
+ }];
953
954
return true;
955
}
0 commit comments