WebsiteBeaver / CordovaCall

Cordova CallKit & ConnectionService plugin for iOS/Android that displays the native call UI for VOIP apps
MIT License
196 stars 91 forks source link

Which permissions needs to be allowed ? #58

Open bilobom opened 5 years ago

bilobom commented 5 years ago

Hi :) Intro : I'm using android nougat 7.0 and I know that we need to allow permissions on runtime . I use a cordova pluging for that.

My problem : I get callback error when attempting CordovaCall.receiveCall()

Error : "You need to accept phone account permissions in order to send and receive calls"

My question : I looked into android Manifest and I'm confused between CALL_PHONE, GET_ACCOUNTS,READ_PHONE_STATE,ACCEPT_HANDOVER permissions. Which one/ones needed for all functionalities in this plugin ?

Thnks :)

bilobom commented 5 years ago

Scratch this, Apparently the permissions are declared in the plugin.xml and they don't require runtime permissions from what i reckon . I guess my problem now is with Huawei phone. As i tested on samsung running android 8 and it's working fine. In Huawei phone under call>settings> there is no mention of account settings or any voip related settings. +On calling receiveCall, it just shows very abruptly the Account settings and vanishes very quickly. Than i get the callbackError : "You need to accept phone account permissions in order to send and receive calls"

iKlotho commented 4 years ago

Hi, I fixed Huawei issue with the following changes on CordovalCall.java

https://gist.github.com/iKlotho/eb69d48e9f446c58826ae13ab6511775