onNotificationOpened isn't called when opening remote notification on iOS
Issue
The callback is never called when opening remote notifications. Local notifications do fire the callback when opened.
firebase
.notifications()
.onNotificationOpened((notificationOpen: NotificationOpen) => {
alert("onNotificationOpened")
})
The same remote notifications will fire getInitialNotification if opened when the app is closed.
Environment
- Application Target Platform: iOS
- Development Operating System: MacOS
- Build Tools: Xcode
React Nativeversion: "react-native": "0.55.4",React Native FirebaseVersion: "react-native-firebase": "^5.0.0-rc4",FirebaseModule:
pod 'Firebase/Core', '~> 5.3.0'
pod 'Firebase/Messaging', '~> 5.3.0'
pod 'Firebase/Auth', '~> 5.3.0'
pod 'Firebase/DynamicLinks', '~> 5.3.0'
pod 'Firebase/Performance', '~> 5.3.0'
- Are you using
typescript?: No
Same here. Did anyone figure this out yet?
Same issue here.
` pod 'Firebase/Core', '~> 5.3.0' pod 'Firebase/Database', '~> 5.3.0' pod 'Firebase/Auth', '~> 5.3.0' pod 'Firebase/Messaging', '~> 5.3.0' pod 'Firebase/Functions', '~> 5.3.0' '
{
"react-native": "0.55.2",
"react-native-firebase": "^4.3.8"
}
We have the same problem. In Debug we can make this work if we:
- launch the app in debug
- reload the bundle once after the app has successfully launched
- send notification and the callbacks work.
However, in release mode, or in debug mode on initial launch onNotificationOpened, does not get called.
Unfortunately this is a pretty debilitating bug...
Duplicate of #1149 and many others, lets track all onNotificationOpened issues in one place please (same platform or not please discuss on #1149).
Thanks