Developers of mobile applications for iOS and Android platforms have a new option for enabling offline support for their applications.
Google has released a Mobile Offline software development kit (SDK) for both platforms that it says will help developers build applications that work smoothly even when not connected to the Internet.
The Mobile Offline capability is based on a mobile cloud service from Google’s acquisition of Firebase last October. It is designed to give developers a way to overcome the limitations of traditional programming approaches in a mobile context, wrote Andy Tzou, product marketing manager for Google Cloud Platform.
Ensuring uninterrupted application performance even when an Internet connection is disrupted can be challenging, added Jonny Dimond, core developer at Firebase.
The new iOS and Android SDKs will give application developers a way to persist synchronized data on disk so it is immediately available when the application starts, Dimond said.
The SDKs also allow developers to specify data that needs to be prefetched from the application server and kept updated on the disk so it will always be available if needed in an offline mode. Developers only require a single line of code to enable disk persistence in their applications and a single line of code for the data synchronization capability as well, he said.
The Firebase database has been designed from the ground up keeping the offline user in mind, Dimond stated.
“All read and write operations happen against a local, on-device version of your database first. Then, data is pushed and pulled from our servers behind the scenes,” he said.
The approach has allowed Firebase to overcome some of the network latency issues associated with the typical request/response methods that are used to move data between a client and server system in a mobile setting, Dimond said.
Enabling offline support for mobile applications appears to be a growing trend among major technology vendors. Google itself offers an offline capability for some applications, like Google Maps, for instance.
Last December, Microsoft announced an offline, managed client SDK for developers of iOS and Android mobile applications.
Like the Google/Firebase SDK, Microsoft’s Mobile Offline capability is designed to let developers boost application responsiveness by caching server data locally on the device and then syncing data when network connectivity becomes available again. Again, similar to the Google approach, Microsoft’s SDK is designed to let users work normally when their mobile device loses local connectivity.
Since at least May of last year, Parse, a company owned by Facebook, has been making available an Android SDK called DataStore that is designed to help mobile application developers enable offline support in their products in similar fashion to what Google and Firebase have started offering.
Originally published on eWeek
Suspended prison sentence for Craig Wright for “flagrant breach” of court order, after his false…
Cash-strapped south American country agrees to sell or discontinue its national Bitcoin wallet after signing…
Google's change will allow advertisers to track customers' digital “fingerprints”, but UK data protection watchdog…
Welcome to Silicon In Focus Podcast: Tech in 2025! Join Steven Webb, UK Chief Technology…
European Commission publishes preliminary instructions to Apple on how to open up iOS to rivals,…
San Francisco jury finds Nima Momeni guilty of second-degree murder of Cash App founder Bob…
View Comments
Good to know about it.This helps a lot in network problem areas etc.