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

Ghost sim card on android 9 #89

Open jorhel opened 4 years ago

jorhel commented 4 years ago

Good morning, I hope someone can help me solve a small problem with the plugin.

I have a problem with a Moto G7 Power, android 9. In my case, the app forces the operating system to choose between two sim's (the second does not physically exist on my device) when making a normal call. But from my app make a fake call with the virtual sim.

Comportamiento esperado: Realizar una llamada desde mi APP

Comportamiento realizado: Al hacer click en llamar desde mi APP, no ejecuta nada, no solicita permisos o cualquier otra acción, es necesario asignar permisos de forma manual a la aplicación, pero en este caso se da de alta una sim virtual en el sistema por lo que la APP realiza llamadas falsas desde esta sim. Por otro lado se que es una sim falsa ya que las llamadas normales fuera desde la app, solicitan seleccionar una SIM para realizar la llamada. (Y mi teléfono solo acepta una SIM fisica).

Especificaciones del entorno: Sistema operativo: Mac OS 10.14.6 Cordova: 9.0.0 (cordova-lib@9.0.1) Plugins: cordova-call 1.1.6 "CordovaCall" cordova-plugin-permission 0.1.0 "Permission" cordova-plugin-whitelist 1.3.4 "Whitelist" Platforms: android 8.1.0 (En Mac).


An attempt was made to add the permissions from config.xml in the following ways: Método 1:

    <config-file parent="/manifest/application" target="AndroidManifest.xml">
        <service android:name="com.dmarc.cordovacall.MyConnectionService"
                 android:permission="android.permission.BIND_TELECOM_CONNECTION_SERVICE">
            <intent-filter>
                <action android:name="android.telecom.ConnectionService" />
            </intent-filter>
        </service>
    </config-file>

Método 2.

    <config-file parent="/*" target="AndroidManifest.xml">
        <uses-permission android:name="android.permission.BIND_TELECOM_CONNECTION_SERVICE"/>
        <uses-permission android:name="android.permission.CALL_PHONE"/>
        <uses-permission android:name="android.permission.MANAGE_OWN_CALLS"/>
    </config-file>

The behavior is the same.

Woondal commented 3 years ago

I have same issue. Have you solved this?