vaenow / cordova-plugin-app-update

App updater for Cordova/PhoneGap
MIT License
299 stars 146 forks source link

Uncaught module cordova-plugin-app-update.AppUpdate not found #123

Open andrew-a-hall opened 5 years ago

andrew-a-hall commented 5 years ago

I have an issue with this plugin giving me the above error.

I've instantiated the plugin using:

var appUpdate = cordova.require('cordova-plugin-app-update.AppUpdate');

appUpdate.checkAppUpdate(onSuccess, onFail, updateUrl, { 'skipPromptDialog' : true, 'skipProgressDialog' : false });

..and it works fine. However when using the app any screen that traps for 'onKeyUp' events for form submits, the app crashes with 'Uncaught module cordova-plugin-app-update.AppUpdate not found'.

Any ideas as to why this would be occurring?

Thanks,