Uncaught ReferenceError: cordova is not defined

后端 未结 2 1925
暗喜
暗喜 2021-02-14 11:09

This is my HelloPlugin.js file.

var HelloPlugin = { 
  callNativeFunction: function(success,fail,resultType) { 
    return cordova.exec(success, fail, \"HelloPlu         


        
2条回答
  •  灰色年华
    2021-02-14 11:11

    I had a similar issue in iOS. The solution was to install cordova-plugin-file-transfer2:

    cordova plugin add cordova-plugin-file-transfer
    

提交回复
热议问题