Skip to content

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

@svaldi

Description

@svaldi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions