'RNcallKeep setup doesn't work in android without the user providing explicit permissions for "Auto Start" and "Overlay Permission"

We are trying to build a video call application similar to a WhatsApp video call.

We implemented the functionality using FCM push notifications. We were able to make a working prototype for both Android and iOS. We are using RNCallKeep for invoking the call.

But this setup doesn't work in android without the user providing explicit permissions for "Auto Start" and "Overlay Permission" from their settings. But Whatsapp doesn't seem to ask for this permission to work. Can anyone help us to request these permissions from the App itself?

Secondly, in iOS, the call is not invoked when the app is in a killed state (Neither foreground nor background). Any suggestion on how to invoke the call in such scenarios.

The FCM Payload that's used to trigger the video call.

{
    "to": "<fcm-token>",
    "content_available": true,
    "priority":"high",
    "notification": {
        "title":"video",
        "message":"You have a video call"
    },
    "data": {
        "type":"IncomingVideoCall",
        "id":"<for app reference>"
    }
}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source