Why do you need 2 Javascript files for cross-platform Cordova plugin?

江枫思渺然 提交于 2019-12-08 00:24:25

Well it depends on what version of PhoneGap/Apache Cordova you are using. In previous version the PhoneGap.exec() method signature was different between iOS and Android. As of 1.7.0 and probably as early as 1.5.0 the method signature is the same. You should be able to use the same .js file for your plugin regardless of the platform you are running on.

cordova.exec(success, fail, service, action, args);

I will create an issue to clean up the wiki instructions.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!