Uncaught ReferenceError: Cordova Is Not Defined
This is my HelloPlugin.js file. var HelloPlugin = { callNativeFunction: function(success,fail,resultType) { return cordova.exec(success, fail, 'HelloPlugin', 'nativeAction'
Solution 1:
Pleas make sure you have <script ... tag for cordova.js before <script ... tag for HelloPlugin.js in your HTML file.
It should have both in the <head> tag like this:
<script src="cordova.js"></script>
<script src="HelloPlugin.js"></script>
Solution 2:
I had a similar issue in iOS. The solution was to install cordova-plugin-file-transfer2:
cordova plugin add cordova-plugin-file-transfer
Post a Comment for "Uncaught ReferenceError: Cordova Is Not Defined"