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
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:
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
The text was updated successfully, but these errors were encountered:
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
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
The text was updated successfully, but these errors were encountered: