可以存储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?
推荐答案
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屋!