WebsiteBeaver / CordovaCall

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

Plugin not working android 9.0 #88

Open smismailalam opened 5 years ago

smismailalam commented 5 years ago

When I build an application in android SDK level 28 or higher plugin not working in Android 9.0 (Pie) but working fine on below android 9.0 devices

anaaf commented 5 years ago

I'm facing same issue

phyr0s commented 5 years ago

I have got this plugin running in 2 apps and no problem with android 9.0 and SDK 28.

Can you give more information about your problem? Say that it does not work without providing information about your project makes it very difficult to help you

smismailalam commented 5 years ago

@videmort thanks for your response my code is: cordova.plugins.CordovaCall.callNumber("0000000", onsuccess, onerror); function onsuccess() { alert('onsuccess'); } function onerror() { alert('error'); } same code working fine on android 8.1 devices but not working on android 9.0 in both devices showing on onsuccess message

phyr0s commented 5 years ago

@IsmailAlam786 Did you call the function after the deviceready event?

Can you share this info:

Cordova: Cordova CLI
Cordova LIB Cordova Platforms Cordova Plugins

System: Android SDK Tools version NodeJS
npm
OS

As i told you previously is important to share more info.

smismailalam commented 5 years ago

Cordova: Cordova CLI = 9.0.0 Cordova LIB = 9.0.0 (cordova-lib@9.0.1) Cordova Platforms = android Cordova Plugins = CordovaCall

System: Android SDK Tools version = 28 NodeJS = v10.15.3 npm = 6.4.1 OS = windows 10

phyr0s commented 4 years ago

@IsmailAlam786 cordova-android version? --> Run in your terminal cordova platform ls

Can you try if this method works? cordova.plugins.CordovaCall.receiveCall('Test');

smismailalam commented 4 years ago

@videmort cordova platform ls Installed platforms: android 7.1.4 yes this method cordova.plugins.CordovaCall.receiveCall('Test'); working fine on both devices

phyr0s commented 4 years ago

Try with lastest version of cordova android 8.1.0

martin-dufka commented 4 years ago

with cordova-android@8.1.0 still the same experience. Receive works, callNumber doesn't.

phyr0s commented 4 years ago

It's very weird, i try and for me is working fine

swaranbm commented 2 years ago

Same issue faced on Android 11 device. Kindly advise.

Below code is not bringing up the dialer or making a call. onCallSuccess function gets called. cordova.plugins.CordovaCall.callNumber("xxxxx", onCallSuccess, onCallError);

node -v v16.13.1

npm -v 8.1.4

cordova -v 11.0.0

cordova platform ls Installed platforms: android 9.0.0

cordova plugin ls cordova-call 1.1.6 "CordovaCall" cordova-plugin-appminimize 1.0.1 "AppMinimize" cordova-plugin-network-information 3.0.0 "Network Information" cordova-plugin-whitelist 1.3.4 "Whitelist" cordova-plugin-x-toast 2.7.3 "Toast"

Android SDK Build Tools v32.0.0 API levels: 22 - 29 Testing on Android v11.