Closed HerickRaposo closed 2 months ago
Requesting permissions and permission support is a bit out of scope for this repository
I recommend using react-native-permissions to manage your permissions
The problem is that even requesting permission I cannot extract the token. After much debugging I found that the application can even display the token but cannot capture the information internally, it is as if the code lost the information and does not recover it when I call the gettoken method
i created one React-Native Android aplication that using react-native-push-notification plugin whith firebase clound messaging. When i ue debug mode the application request permission to use notification, but when generate apk or aab in release mode the aplication dont request permission then, i tryed many solutions anything dont resolve my problem.
After some test using npx react-native log-android i verifyed that somethings: First the permission camera is openned normaly in debug and release mode but POST_NOTIFICATIONS is required only in debug mode and cant print permission in console, after this i thyed some solutions thinking the problem is request POST_NOTIFICATION permission:
That is my code that i was implement: AndroidManifest:
Build.gradle:
AndroidPermissions:
App.js:
Index.js
Enviroment settings: