There is no clear definition of online/offline state. You can have internet access (online) but ou want to use the application in offline mode (from different reasons like expensive/bad internet connection, speed, leaving soon and do not want to sync, etc)
Also you may want to change to online mode but not having internet connection, then the offline mode will be forced. So, you will need an "internet access check". This can be done with an AJAX request to a resource on your website. And the Gears app state should be stored inside the application. On May 17, 6:00 pm, Gopal kalasa <[email protected]> wrote: > HI, > > I want to use google gears to work offline with gwt module, > i am planing to write two EntryPoints in one gwt module, one for each > offline and online. > but failing to find out offline/online detection. > > Is there any function in Gears to check whether the application is > online or offline? > Can you provide code for offline/online detection? > > Thank You in Advance > Gopal
