I have a problem with Phonegap . I created a test application using the console:
phonegap create ProjectTest cordova platform add ios cordova build
Then we opened the generated Xcode project and added a new line to the onDeviceReady function:
onDeviceReady: function() { app.receivedEvent('deviceready');
I also added this line to my config.xml file:
<plugin name="NetworkStatus" value="CDVConnection" />
So, the result in the warning: "undefined" ...
I just need to check the connection using navigator.connection.type
Using MacBook and Xcode 4.6.3
ios cordova connection navigator
Fetalump
source share