tinycreative / react-native-intercom

React Native wrapper for Intercom.io
MIT License
405 stars 279 forks source link

iOS - silent push notifications are blocked by intercom on the first launch of the app #367

Closed dmarkowski closed 2 years ago

dmarkowski commented 4 years ago

My app config: "react-native-intercom": "15.0.0", "@react-native-community/push-notification-ios": "1.2.0", "react-native-push-notification": "3.5.2", "react-native": "0.61.4", ....

When I launch the app for the first time my platform silent notifications are not working. I can see in xcode console a message: Warning: Application delegate received call to -application:didReceiveRemoteNotification:fetchCompletionHandler: but the completion handler was never called.

This is only happening on the first launch of the app. If I remove intercom library all of the notifications are working correctly.

A similar problem is also described in StackOverflow: https://stackoverflow.com/questions/28753884/didreceiveremotenotificationfetchcompletionhandler-but-the-completion-handler and intercom community forum https://community.intercom.com/t/push-notifications-intercom-appdelegate-hook-conflict-with-fcm-configuration/1730/3 but without solution for this situation.