This is my HelloPlugin.js file.
var HelloPlugin = {
callNativeFunction: function(success,fail,resultType) {
return cordova.exec(success, fail, \"HelloPlu
I had a similar issue in iOS. The solution was to install cordova-plugin-file-transfer2:
cordova plugin add cordova-plugin-file-transfer
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>