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

Android - Unnecessary Permissions: FOREGROUND_SERVICE_CAMERA and FOREGROUND_SERVICE_MEDIA_PROJECTION Required? #10

Open
svaldi opened this issue Nov 25, 2024 · 0 comments

Comments

@svaldi
Copy link

svaldi commented Nov 25, 2024

Hello maintainers,

I’m currently using the @vapi-ai/react-native library and have encountered an issue regarding Android permissions. The library requires the following foreground service permissions:

FOREGROUND_SERVICE_CAMERA
FOREGROUND_SERVICE_MEDIA_PROJECTION
FOREGROUND_SERVICE_MICROPHONE

However, in my application, we only utilize the microphone (FOREGROUND_SERVICE_MICROPHONE), so the inclusion of FOREGROUND_SERVICE_CAMERA and FOREGROUND_SERVICE_MEDIA_PROJECTION seems unnecessary. When I attempt to remove these permissions from the configuration, the app crashes.

I’d like to understand:

Why are FOREGROUND_SERVICE_CAMERA and FOREGROUND_SERVICE_MEDIA_PROJECTION required for this library?
Is there a way to avoid including these permissions if the app only requires microphone functionality?
Any insights or guidance on resolving this would be greatly appreciated. Thank you for your support and for providing this library!

Best regards,
Luis Valdivia

@svaldi svaldi changed the title Unnecessary Permissions: FOREGROUND_SERVICE_CAMERA and FOREGROUND_SERVICE_MEDIA_PROJECTION Required? Android - Unnecessary Permissions: FOREGROUND_SERVICE_CAMERA and FOREGROUND_SERVICE_MEDIA_PROJECTION Required? Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant