Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enable offline data access with angularfire2

I'm developing a Firebase based application using Ionic2 and Angularfire2. Does anybody know if its possible to setPersistenceEnabled(true) to allow for offline application use?

like image 364
Peter Avatar asked Sep 08 '26 00:09

Peter


1 Answers

All Firebase SDKs handle intermittent connectivity loss, by keeping a cache of active data in memory and keeping a queue of pending writes.

Native mobile SDKs (for iOS and Android) have the ability to persist the cache and queue to disk, so that it survives app restarts. The web SDK does not have this ability.

like image 109
Frank van Puffelen Avatar answered Sep 11 '26 03:09

Frank van Puffelen