I read this thread and was wondering how much functionality would be possible, while an App isnt Connected to a network?
Some of my questions could be stupid or not make sense in this context, but I am still trying to wrap my head around the concept.
- How much of the functionality could be located on the device itself?
- Could I build an App running allmost exclusively offline, collecting Data, running some calculations and then at critical moments or at the users command upload data to an external server in the web or a network?
Let me give you an example what I am getting at...
- collects GPS data on the device
- calculates the distance the user ran
- calculates the calories used
- when the user stops for more then 1 min gives a sound and if a certain action isn't taken a prewritten message is sent to some server or person.
It is assumed the device isn't connected to any kind of network until it tries to send the messsage( GPS connection excluded).
The App should also be able to save the routes the user ran and at some later point, possibly after restarting the device and cleaning his html5 cache, upload them to some server
SSSahaya Sweetlin Ponmalar P Syncfusion Team June 28, 2013 01:00 PM UTC
for your interest in Syncfusion products.
suspect that we could not get the current GPS location when the device is not
connected to the network.
can write the current GPS location using File API while device is connected. We
can read the previous GPS location from File API when the device is in Offline
mode and we can calculate the distance and the calories used.
the device is connected to the network we can send the data to the server using
Ajax post or using WebService.
refer the below documentation for “How to use File API and GPS
Location API with Orubase”