chore(messaging)!: deprecate permissions APIs, use react-native-permissions or expo-notifications#9053
Conversation
…ssions or expo-notifications
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces a breaking change by deprecating the notification permission-related APIs within the messaging module. The goal is to encourage users to adopt more comprehensive, dedicated libraries like Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request deprecates the notification permission APIs ('requestPermission', 'hasPermission', 'AuthorizationStatus', and 'IOSPermissions') in '@react-native-firebase/messaging' across the codebase and documentation, recommending the use of 'react-native-permissions' or 'expo-notifications' instead. The review feedback highlights a minor grammatical typo in the Android permissions documentation and points out an inconsistency between the issue number referenced in the PR description (#6282) and the one used in the code and docs (#6283).
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Description
Deprecate permissions-related APIs, they are not firebase-specific and other packages handle them much more completely (expo-notifications for Expo users, and react-native-permissions for CLI)
It is a documentation change and adding
@deprecationto APIs.Related issues
Release Summary
This commit is marked as a breaking change since it introduces a deprecation - those can be done any time but I wanted it to show up brightly in the release notes
It will be batched with the next / coming shortly release off main which is breaking for other reasons
Checklist
AndroidiOSOther(macOS, web)e2etests added or updated inpackages/\*\*/e2ejesttests added or updated inpackages/\*\*/__tests__Test Plan
yarn targets lint:spellcheck lint:markdown lint and reference:api all pass
Think
react-native-firebaseis great? Please consider supporting the project with any of the below:React Native FirebaseandInvertaseon Twitter