Issue
When @react-native-firebase/messaging is installed alongside expo-notifications, it causes scheduleNotificationAsync from expo-notifications to no longer display local notifications, this started happening after upgrading to the latest version of @react-native-firebase/messaging and works correctly versions older than v23.8.4 as discussed in #8917
Note:
This is solved when adding the following to firebase.json, but this workaround isn't enough because we want to handle the notification manually in some cases
{
"react-native": {
"messaging_ios_foreground_presentation_options": [
"badge",
"sound",
"list",
"banner"
]
}
}
Project Files
package.json:
"@react-native-firebase/app": "24.1.1",
"@react-native-firebase/messaging": "24.1.1",
"expo-notifications": "56.0.17",
Environment
react-native info output:
- Platform that you're experiencing the issue on:
react-native-firebase version you're using that has this issue:
- "@react-native-firebase/app": "24.1.1",
Firebase module(s) you're using that has the issue:
- "@react-native-firebase/messaging": "24.1.1",
Issue
When @react-native-firebase/messaging is installed alongside expo-notifications, it causes scheduleNotificationAsync from expo-notifications to no longer display local notifications, this started happening after upgrading to the latest version of @react-native-firebase/messaging and works correctly versions older than v23.8.4 as discussed in #8917
Note:
This is solved when adding the following to firebase.json, but this workaround isn't enough because we want to handle the notification manually in some cases
Project Files
package.json:Environment
react-native infooutput:react-native-firebaseversion you're using that has this issue:Firebasemodule(s) you're using that has the issue: