Bower Component for using AngularJS with PhoneGap's Connection API.
bower install angular-phonegap-connection
- Made sure the
cordova-*.js
script is in your.html
file. - Include the
connection.js
script, and this script's dependencies are included in your app. - Add
dbaq.phonegap.connection
as a module dependency to your app. - Retrieve the network state:
connection.getType(function (networkState) {
console.log('Connection type: ' + networkState);
});
MIT