Nativescript-plugin-firebase: Offline capabilities for Firebase database

Created on 22 Jun 2016  路  3Comments  路  Source: EddyVerbruggen/nativescript-plugin-firebase

According to the Firebase docs, you can set up Offline capabilities for your database like thus: https://firebase.google.com/docs/database/web/offline-capabilities
https://firebase.google.com/docs/database/android/offline-capabilities

We already have the ability to set the Persistence (setPersistenceEnabled) I believe; we just would need to use the keepSynched flag and handle data sync on the client side. A nice enhancement!

thanks!
Jen

enhancement

Most helpful comment

Version 3.4.1 of this plugin added keepInSync.

It's a bit hard to demo this feature but I'm sure you'll find a good usecase for it.

All 3 comments

That sounds sweet. setPersistenceEnabled is a global property though and this one is for a specific branch (which can be the root of course, lol). So it's a bit more work but compared to Facebook auth and push notifications it's a walk in the park 馃尣 馃尦

Version 3.4.1 of this plugin added keepInSync.

It's a bit hard to demo this feature but I'm sure you'll find a good usecase for it.

Looks super useful! Look @tjvantoll, offline sync!

Was this page helpful?
0 / 5 - 0 ratings