You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When uploading an Android build using react-native-capture-protection to Google Play Console, we encounter the following error:
Google Api Error: Invalid request - All developers requesting access to the photo and video permissions are required to tell Google Play about the core functionality of their app.
It seems that react-native-capture-protection requests access to photo or video permissions (e.g., READ_MEDIA_IMAGES, READ_MEDIA_VIDEO, READ_EXTERNAL_STORAGE) even though its functionality focuses on screen capture protection.
Expected Behavior
The library should not request sensitive permissions (like photo and video access) unless absolutely necessary for its core functionality.
Actual Behavior
The app is being flagged during Google Play Console upload for requesting photo/video permissions, requiring a "Sensitive Permissions" declaration, even though these permissions are not relevant to the core functionality.
Steps to Reproduce
Integrate react-native-capture-protection into a React Native project.
Build an Android APK or AAB.
Upload the build to Google Play Console.
Observe the error related to photo/video sensitive permissions.
Environment
Library version: 2.0.7
React Native version: 0.74.7
Android target SDK: 34
Suggested Fix
Review the library’s permissions in the AndroidManifest or codebase to remove unnecessary permissions like READ_MEDIA_IMAGES, READ_MEDIA_VIDEO, or READ_EXTERNAL_STORAGE.
Consider limiting permissions to only what's needed for the library's functionality (screen capture protection).
The text was updated successfully, but these errors were encountered:
When uploading an Android build using
react-native-capture-protection
to Google Play Console, we encounter the following error:Google Api Error: Invalid request - All developers requesting access to the photo and video permissions are required to tell Google Play about the core functionality of their app.
It seems that
react-native-capture-protection
requests access to photo or video permissions (e.g.,READ_MEDIA_IMAGES
,READ_MEDIA_VIDEO
,READ_EXTERNAL_STORAGE
) even though its functionality focuses on screen capture protection.Expected Behavior
The library should not request sensitive permissions (like photo and video access) unless absolutely necessary for its core functionality.
Actual Behavior
The app is being flagged during Google Play Console upload for requesting photo/video permissions, requiring a "Sensitive Permissions" declaration, even though these permissions are not relevant to the core functionality.
Steps to Reproduce
react-native-capture-protection
into a React Native project.Environment
Suggested Fix
READ_MEDIA_IMAGES
,READ_MEDIA_VIDEO
, orREAD_EXTERNAL_STORAGE
.The text was updated successfully, but these errors were encountered: