I want to show an alert to the user that they aren’t connected to the internet while in a mobile phone meteor-cordova app - but I can’t seem to find how to achiee this.
Does anyone have any ideas on how to do this?
I want to show an alert to the user that they aren’t connected to the internet while in a mobile phone meteor-cordova app - but I can’t seem to find how to achiee this.
Does anyone have any ideas on how to do this?
You can use this
enabled: ->
connected = false
if Meteor.status()
if Meteor.status().connected
connected = true
return connected