Closed calanti closed 7 years ago
Yeah I'm facing the same problem with the latest version of this plugin. can't build to Android . Please can it be fixed as soon as possible?
CFCallNumber.java:27: error: cannot find symbol cordova.requestPermission(this, requestCode, CALL_PHONE); ^ symbol: method requestPermission(CFCallNumber,int,String) location: variable cordova of type CordovaInterface
Same problem here, looks like the people at cordova added cordova.requestPermission
from Cordova 5+ to check for the permissions required by Android Marshmallow.
If you have Cordova < 5 you can try with
cordova plugin add https://github.com/Rohfosho/CordovaCallNumberPlugin.git#dd1b05e13f90992668cdf8da730995f98ecfe256
That commit worked for me.
The weird thing is that I have Cordova 5.4.1 but I am still having those build problems, I even recreated the android platform but the problems persists, however I think that's a problem of my environment not a bug of the plugin.
I was just able to use the latest commit, but a lot of my configuration has changed since I last tried so I am not sure where it got fixed. Most likely when I upped the android build spec from 4.1.1 to 5.1.1, you can give this a go by setting it in the config.xml;
<engine name="android" spec="~5.1.1" />
You will probably need the correct Android sdk dependencies for it if you don't already.
of course remove, add and (attempt to) build Android.
Hope this helps!
@maxrevilo Your solution worked for me. Thanks
@maxrevilo Hey man! Your solution worked for me as well.
@maxrevilo Gracias tambien funciono para mi..!!
Latest commit (648d98b) breaks android build for me, also tried 19/02/2016 commit (ee8a081) with same problem.
After looking though the closed issues, #15 states commit (79333b3) builds successfully, which indeed does work for me and works successfully in my app.
Corvoda version 5.4.1 Java version 1.8.0_74
Error: