Skip to content

[🐛] 🔥 Conflict with expo-notifications local notifications on iOS #9050

Description

@RodSarhan

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:

 OUTPUT GOES HERE
  • Platform that you're experiencing the issue on:
    • iOS
    • Android
    • iOS but have not tested behavior on Android
    • Android but have not tested behavior on iOS
    • Both
  • 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",

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions