In our react-native app, Google Play says "Remove Full-screen intent permission or submit declaration", so I checked my AndroidManifest.xml
, but there was no USE_FULL_SCREEN_INTENT permission, upon further inspection, I found out that we are using @notifee/react-native which is using USE_FULL_SCREEN_INTENT permission, but in our app we are not showing full screen notification in any case. So, I removed the permission manually from AndroidManifest.xml
<manifest xmlns:tools="http://schemas.android.com/tools">
...
<uses-permission android:name="android.permission.USE_FULL_SCREEN_INTENT" tools:node="remove" />
...
</manifest>
and my android/app/build/outputs/logs/manifest-merger-release-report.txt
shows that the USE_FULL_SCREEN_INTENT is REJECTED
But still google play shows 1 declaration needs attention error and not allowing me to upload newer versions.
EDIT:
The issue seems to with Play Store. The message on the Play Store is super confusing. If I click into it, I see that the declaration is for existing bundles, not the new bundle I am trying to upload. However, I can’t proceed with the new upload until the declaration is made.
2
Answers
This is due to Notifee auto-adding permissions.
Please try the following:
In your
AndroidManifest.xml
, that’s./android/app/src/main/AndroidManifest.xml
I use in some of my apps Notifiee too and it removed the permission from the final build. Play Store accepted a new version of my app without any declaration needed.
It might affect some other modules not only Notifee.
I was having the same issue after adding the change outlined in the answer. I cleared the error by deleting the pending release from Google Play and redeploying. Now I’m able to publish again from my build server without manual intervention and with USE_FULL_SCREEN_INTENT removed.