Categories: Mobile AppsMobility

Google SDKs Enable iOS, Android Mobile Apps To Work Offline

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.

Offline support

Having offline capability in areas where network connections are spotty or nonexistent—such as on the subway, in airplanes and in dead zones—can make a huge difference in overall experience when using a mobile application. “Building a seamless user experience under these conditions can be challenging, while users increasingly expect their apps to work offline,” Tzou said.

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.

Developer view

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

Take our Google Cars quiz here!

Chris Preimesberger

Editor of eWEEK and repository of knowledge on storage, amongst other things

View Comments

Recent Posts

Craig Wright Sentenced For Contempt Of Court

Suspended prison sentence for Craig Wright for “flagrant breach” of court order, after his false…

2 days ago

El Salvador To Sell Or Discontinue Bitcoin Wallet, After IMF Deal

Cash-strapped south American country agrees to sell or discontinue its national Bitcoin wallet after signing…

2 days ago

UK’s ICO Labels Google ‘Irresponsible’ For Tracking Change

Google's change will allow advertisers to track customers' digital “fingerprints”, but UK data protection watchdog…

2 days ago

EU Publishes iOS Interoperability Plans

European Commission publishes preliminary instructions to Apple on how to open up iOS to rivals,…

3 days ago

Momeni Convicted In Bob Lee Murder

San Francisco jury finds Nima Momeni guilty of second-degree murder of Cash App founder Bob…

3 days ago