[messaging][ios] registerForRemoteNotification on main thread
This commit is contained in:
parent
403a7eefa0
commit
ff8a8676d6
|
@ -297,7 +297,9 @@ RCT_EXPORT_METHOD(requestPermissions:(RCTPromiseResolveBlock)resolve rejecter:(R
|
|||
#endif
|
||||
}
|
||||
|
||||
[RCTSharedApplication() registerForRemoteNotifications];
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[RCTSharedApplication() registerForRemoteNotifications];
|
||||
});
|
||||
}
|
||||
|
||||
RCT_EXPORT_METHOD(subscribeToTopic: (NSString*) topic) {
|
||||
|
|
Loading…
Reference in New Issue