cordova 3.0: Android: Connection is not defined

前端 未结 14 1736
情话喂你
情话喂你 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:20

    I had the same problem with Cordova 3.5.0: navigator.connection.type returned 0 all the time and navigator.onLine was true. It was frustrating.

    Then I found that the problem is only on my phone (with Android 2.3) and it works on emulator.

    I guess that the problem can relate with Android version too.

提交回复
热议问题