可以存储 Firebase 数据 &在 Ionic 2 中以离线模式运行应用程序功能? [英] Is possible to store firebase data & run the application functions in offline mode in Ionic 2?
问题描述
我找到了一些关于 Ionic 2 离线模式 firebase 的教程,但我仍然不知道如何在我的应用程序中启用这个功能.
I found some tutorials about offline mode firebase for Ionic 2 but still I don't know how can I enable this thing in my application.
那么,firebase 真的支持离线模式吗?如果是,我可以存储所有收到的数据并在离线模式下运行这些功能吗?
So, Is firebase realy support offline mode? If yes, can I store all recieved data and run the functions in offline mode?
推荐答案
firebase 还没有官方支持.但是你可以使用 angularfire2-offline 库.
There is no official support yet from firebase.But you can do that using angularfire2-offline library.
AngularFire2 的一个简单包装器,用于读取和写入 Firebase,同时离线,即使在完全刷新后也是如此.
A simple wrapper for AngularFire2 to read and write to Firebase while offline, even after a complete refresh.
这里有一篇很棒的文章:使用 AngularFire2 进行离线同步
Here is a great article about it: Offline Sync With AngularFire2
这篇关于可以存储 Firebase 数据 &在 Ionic 2 中以离线模式运行应用程序功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!