Skip to content Skip to sidebar Skip to footer

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:


Post a Comment for "Uncaught ReferenceError: Cordova Is Not Defined"