lundi 11 juillet 2016

Cordova plugin - reference file from www folder


I have a .js file that is relevant to my cordova app www folder, as well as a plugin that I am creating for iOS. From the native iOS code in the plugin folder, how can I reference my .js file without duplicating it?

From my Android src code I found a way to refer to this file which seems somewhat hacky: file:///android_asset/www/app/drivers/myApi.js


Aucun commentaire:

Enregistrer un commentaire