Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8497

Re: How to do offline application in SAPUI5?

$
0
0

Hi,

 

I want to store the data  which is coming from backend by using local Storage when it is in online mode and get the data from local storage when it is in offline mode.

 

I followed the below URL to do somthing like that.

Possibility to save HTML5 data locally on mobile devices

 

 

For that first I need to check that the Network is in online or offline Mode.

 

I am doing desktop application.In that I am using

 

if(navigator.onLine == true){

  alert("online");

  }else{

  alert("offline");

  }

 

But when I disable the Network (Desktop) I am getting the alert like online instead of getting Offline.

 

How to find that the application is in Online mode or offline mode?

 

How to get the Offline alert when there is no network available?

 

Please Help me.

 

Thanks&Regards

Sridevi


Viewing all articles
Browse latest Browse all 8497

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>