Open Tristan10 opened 2 years ago
Hello @Tristan10 did you find any solution? I have same issue.
Same issue here... I comes after upgrading to the latest version
Same issue. I can see the app starting up in background in the remote debugger console. But it doesn't fire the onNotification event. But if I send the notification again in this state - it does fire the onNotification event.
Is there a fix for this issue ? Facing the same. When app is closed, the action function is not getting called. Did anyone find a fix for this ?
Damn I'm seeing this too, any fixes?
"@react-native-community/push-notification-ios": "^1.8.0" "react-native-push-notification": "^7.3.1" "@react-native-firebase/messaging": "^10.3.1"
I have tried two different solutions to handling notifications on iOS. The first was to send data-only notifications and handle them by using RNFirebase's
messaging().setBackgroundMessageHandler
and then creating a local notification withPushNotification.localNotification
and setting the category. This was working correctly for both iOS and Android for all app states (or so I thought). I began getting reports of iOS users not receiving any notifications. I chalked it up to iOS' restriction on background notifications listed here in their docs: APNS Docs. This is how Android is currently working in my app.I then tried to send notification + data type payloads for iOS and setting the category. The notifications seem to be received by everyone, but the notification actions are no longer working on iOS. It seems that the callbacks are just not being triggered when the app is in the quit state (swiped away from app tray). They seem to still work correctly when the app is in the background or foreground.
Here is my index.js (modified for brevity)
Payload Build