@priteshpmehta wrote:
Hi,
How can i detect network connection in each controller or in every request ?
following code checks network on app start... but not on every request...
if(window.Connection) { if(navigator.connection.type == Connection.NONE) { alert('There is no internet connection available'); }else{ alert(navigator.connection.type); } } else{ alert('Cannot find Window.Connection'); }I want to check it on each controller or even on each request...
Any help will be appreciated...
Thank you.
Posts: 1
Participants: 1