IDEAFY / ideafy-ios-distrib

A repo to archive distribution versions of Ideafy (past and in-development) for the app store
1 stars 0 forks source link

App should check for internet connection availability at startup #20

Closed vweyl closed 11 years ago

vweyl commented 11 years ago

using cordova navigator.connection.type

vweyl commented 11 years ago

Done using cordova navigator.connection.type --> if value is "none" then a message is displayed (using the login stack). Done in 1.02. Note that to make sure this is invoked after cordova is fully loaded we changed the way the application scripts are loaded -> wait for device ready / then create a script element with data-main and src attributes and append element to document.head.