rohfosho / CordovaCallNumberPlugin

Call a number directly from your cordova application.
MIT License
185 stars 151 forks source link

"Call to unknown plugin: CallNumber" when installing 1.0.4 (broken in Cordova 8) #87

Open AndrWeisR opened 4 years ago

AndrWeisR commented 4 years ago

Because the npm package refers to version 1.0.1 instead of 1.0.4, I have added the Cordova plugin to my Ionic 4 project from Github directly with ionic cordova plugin add git+https://github.com/rohfosho/CordovaCallNumberPlugin.git, to get the latest version.

But when I then run the app on a phone and try to launch the dialler, I get an error:

D/PluginManager: exec() call to unknown plugin: CallNumber

Does anybody have a solution for this?

AndrWeisR commented 4 years ago

This merged PR fixes Cordova 7 but breaks Cordova 8. It changed paths in plugin.xml from res/xml/config.xml to app/src/main/res/xml/config.xml

AndrWeisR commented 4 years ago

Any support for this? The recent merge I referenced above has broken this plugin on Cordova 8.

dogofpavlov commented 4 years ago

Having the same problem. I was able to manually change in the plugin.xml what you highlighted above back to "res/xml/config.xml" and also changed "app/src/main/AndroidManifest.xml" to just "AndroidManifest.xml" and now it's working correctly.

ewerton94 commented 4 years ago

It doesn't work for me @dogofpavlov

dogofpavlov commented 4 years ago

@ewerton94 sorry. I'd say double check. I just did it again for another project I'm working on and it worked. Be sure to remove/add the project again.

ewerton94 commented 4 years ago

@dogofpavlov it worked for me, thanks.

AndrWeisR commented 3 years ago

FYI, this is fixed by #88