Commit 1f3c38fa authored by Kevin Cooper's avatar Kevin Cooper Committed by Libin Lu

Fix iOS crash on startup due to wrong thread (#245)

Error:

```
Assertion failure in -[GIPReachability startWithCompletionHandler:]
'NSInternalInconsistencyException', reason: 'GIPReachability should be used from the main thread'
```

Fixes #233
parent f4a24b47
......@@ -160,7 +160,9 @@ RCT_EXPORT_MODULE()
name:FIRMessagingSendSuccessNotification object:nil];
// For iOS 10 data message (sent via FCM)
[[FIRMessaging messaging] setRemoteMessageDelegate:self];
dispatch_async(dispatch_get_main_queue(), ^{
[[FIRMessaging messaging] setRemoteMessageDelegate:self];
});
}
- (void)connectToFCM
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment