Parse Local Datastore Lets Developers Take Apps Offline

Posted on Friday, May 2, 2014 by RICHARD HARRIS, Executive Editor

The new Parse Local Datastore is an updated feature in the Parse Android SDK that lets developers to take an app offline with just a few simple lines of code. ParseObject#pin() adds ParseObjects to the Local Datastore and ParseObject#unpin() removes them. Once pinned, they can be accessed anytime with a normal ParseQuery.

Pinned ParseObjects will remain accessible while offline, through app exits and restarts, until they are unpinned. Subsequent saves, updates, or deletes will keep the Parse Local Datastore results up-to-date.

Developers can also choose to update an object using ParseObject#saveEventually(). This will first update its instance in the Local Datastore and then remotely, so any changes can be kept up-to-date while offline.

This also means that developers already using ParseObject#saveEventually() to protect an app against network failures will get most of this without any additional work, simply by updating to the latest Android SDK and enabling Local Datastore.

Parse has made available a guide and API docs to take Android apps offline. An iOS Parse Local Datastore is in the works. 

More App Developer News

Buildbox 4 AI turns game ideas into reality faster than ever



Odeeo hires Spotify executive James Cowan



ATT user opt in insights from AppsFlyer



Social engineering takeover attacks are on the rise



Epic Games defeats Google in court



Copyright © 2024 by Moonbeam Development

Address:
3003 East Chestnut Expy
STE# 575
Springfield, Mo 65802

Phone: 1-844-277-3386

Fax:417-429-2935

E-Mail: contact@appdevelopermagazine.com