Closed bang9 closed 3 years ago
If you use react-native-push-notification
with react-native-firebase
do not call finish, remote notification will be handled by native firebase sdk with proxy method
PushNotification.configure({
onNotification: (notification) => {
// do not call finish
// notification.finish(PushNotificationIOS.FetchResult.NoData);
}
})
It will make to avoid the crash, but Push notifications doesn't work in foreground.
may resolve #163
related issues https://github.com/invertase/react-native-firebase/issues/3944 https://github.com/firebase/firebase-ios-sdk/pull/6863