Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin not working android 9.0 #88

Open
smismailalam opened this issue Nov 28, 2019 · 11 comments
Open

Plugin not working android 9.0 #88

smismailalam opened this issue Nov 28, 2019 · 11 comments

Comments

@smismailalam
Copy link

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
Copy link

anaaf commented Nov 28, 2019

I'm facing same issue

@phyr0s
Copy link

phyr0s commented Nov 28, 2019

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
Copy link
Author

@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
Copy link

phyr0s commented Nov 28, 2019

@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
Copy link
Author

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
Copy link

phyr0s commented Nov 29, 2019

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

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

@smismailalam
Copy link
Author

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

@phyr0s
Copy link

phyr0s commented Nov 29, 2019

Try with lastest version of cordova android 8.1.0

@martin-dufka
Copy link

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

@phyr0s
Copy link

phyr0s commented Jan 23, 2020

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

@swaranbm
Copy link

swaranbm commented Dec 25, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants