Open arirah opened 8 years ago
Cordova plugins relies on deviceready
event. window.plugins
is not available until this event is fired. If you're getting this error after deviceready
, code and environment can help to understand what's going on.
I have downloaded from the repo the plugin and it has installed successfully via the command line, however when I copy the test code they suggest into my .js file called by Cordova in my project, it says 'plugins' is undefined. The js code can be as simple as follows and result in this error:
var appp = plugins.appPreferences;
Same issue from another link
http://stackoverflow.com/questions/27968367/getting-application-preferences-within-cordova