Firebase battery life in ion / cord

Has anyone implemented their own Firebase app with full standalone capabilities in Android / iOS?

Can this be done in Cordova / Ionic with a plugin that uses Firebase's own SDKs?

We are creating an application that has a connection at boot and first start, but then we must assume that the Internet connection no longer exists, and all content from the database should be available offline. Is Firebase suitable for this requirement or do we need to use CouchDB / PouchDB or any other alternative?

+4
source share
2 answers

You can use the following project - AngularFire2-offline

The goal is to enable offline data access to support browsers (which supports service workers) - A list of browsers (and corresponding versions) that support service workers

It works like this -

  • Online, Firebase data is stored locally (local data storage when data changes)
  • In offline mode, local data is served, if available, and records are stored locally.
  • When reconnected, application updates with new Firebase data and records are sent to Firebase
  • Even in online mode, local data is used first when it is available, which leads to faster loading.
+2

JS SDK "" firebase. , , , , -, "", . , , "" .

Firebase Cordova https://www.npmjs.com/package/cordova-plugin-firebase, . , .

, SQLite CouchDB/PouchDB, .

+4

Source: https://habr.com/ru/post/1659981/


All Articles