cordova 3.0: Android: Connection is not defined

前端 未结 14 1575
情话喂你
情话喂你 2020-12-20 13:54

my first time experimenting with Apache Cordova 3.0.

downloaded lib, unziped cordova-android and cordova-js and created a project:

./create ~/Docume         


        
相关标签:
14条回答
  • 2020-12-20 14:25

    I resolved by:

    $ phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-network-information.git
    
    0 讨论(0)
  • 2020-12-20 14:26

    For me it was because I was calling checkConnection() inside $(function(){}). It should be called by

    document.addEventListener("deviceready", function(){
        checkConnection();
    });
    
    0 讨论(0)
提交回复
热议问题