Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FOREGROUND_SERVICE_MEDIA_PROJECTION permission #823

Open
mattallard123 opened this issue Sep 23, 2024 · 4 comments
Open

FOREGROUND_SERVICE_MEDIA_PROJECTION permission #823

mattallard123 opened this issue Sep 23, 2024 · 4 comments

Comments

@mattallard123
Copy link

Describe the bug
I am getting an error on the Google Play Store now when uploading my app with react-native-agora. This permission is added to the AndroidManifest when built, and appears to be used for screen sharing. Google Play asks for a video example of the use case that requires this permission, however I don't have one as I don't use the screen sharing feature in my app. I am only using Agora for video chat / video recording from the device camera.

To Reproduce
Steps to reproduce the behavior:

  1. ./gradlew bundleRelease
  2. Upload aab to Google Play
  3. Get error: Your app uses the FOREGROUND_SERVICE_MEDIA_PROJECTION permission. You can only use this permission if your app performs tasks noticeable to the user when they're not directly interacting with your app.

Expected behavior
Not add this permission to my AndroidManifest at build if I am not using screen sharing feature, or have some way to flag it. I have added the following to my project/android/build.gradle but not working:

configurations.all {
exclude group:"io.agora.rtc", module:"full-screen-sharing"
}

Additional context
"react-native": "0.75.2"
"react-native-agora": "^4.4.0"

@guoxianzhe
Copy link
Contributor

guoxianzhe commented Sep 24, 2024

@mattallard123 You should exclude Screen Sharing extension , pls refer AgoraIO-Extensions/Agora-Flutter-SDK#1666 (comment)

@mattallard123
Copy link
Author

@guoxianzhe Maybe add to react-native-agora Readme under setup, as someone who is just using streaming and not sharing, I missed that completely. Thanks so much!

guoxianzhe added a commit that referenced this issue Sep 25, 2024
@guoxianzhe
Copy link
Contributor

will add README in 4.5.0

Copy link

stale bot commented Nov 24, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the inactivity label Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants