ReallySmallSoftware / cordova-plugin-firestore

A Google Firebase Firestore plugin to enable realtime synchronisation between app and cloud and automatically handle limited connectivity.
Other
22 stars 10 forks source link

[Question] How it is different from using the firestore.js goolge web library #10

Closed knvpk closed 5 years ago

knvpk commented 5 years ago

Are there any features that are not available via web library and included in this package? Is this package support offline data syncing to firestore when mobile has internet connected but APP is in terminated state?

ReallySmallSoftware commented 5 years ago

Hello. There are no extra features, indeed there will be some missing at the moment.

However, the intention was that by being written in native code the features that were supported might be faster, more secure (using phone storage rather than webview for example) and better able to support offline operation.

The syncing doesn't happen if the app is terminated, but as good as, as when the app is restarted the sync process happens transparently. Full offline mode is supported, with local/remote writes being synched when the device comes back online.

knvpk commented 5 years ago

The syncing doesn't happen if the app is terminated

Does the Native Android support syncing of data when app is terminated.

Thanks for clarification given.

ReallySmallSoftware commented 5 years ago

No, my understanding is that the sync only happens when the app is listening. It may be possible to have something running in the background that is always listening - ie just has an active listener registered, but I believe this is something you would need to code.

knvpk commented 5 years ago

ok thanks