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