坚持使用Firebase网站的数据 [英] Persist data with firebase web

查看:101
本文介绍了坚持使用Firebase网站的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用Firebase构建了一个应用程序,并且还使用了nw.js提供了一个桌面版本。这样做的目的是允许在互联网不好或没有互联网的地区更好的离线使用(当用户再次上网时,它将同步)。现在,我可以断开连接,并在应用程序运行时重新连接,但我希望能够完全关闭并重新加载应用程序。我已经看过这篇博文来自firebase a>,但似乎这只适用于移动平台。

I have built an application with Firebase and I've also made a desktop version available with nw.js. The point of this being to allow for better offline usage in areas with bad or no internet (and it will sync when the user gets internet again). Now, I can disconnect just fine and reconnect while the app is running, but I want to be able to fully close and reload the application. I've seen this blog post from firebase, but it appears this only works for mobile platforms.

这个目前是否可以在网络平台上使用?

Is this currently possible on the web platform, too?

推荐答案

所有的Firebase SDK都会处理间歇性连接丢失(通过隧道)。但是,基于磁盘的持久性(允许数据在应用程序重新启动后仍然存在)目前仅在Firebase的iOS和Android SDK中可用。

All Firebase SDKs will handle intermittent loss of connectivity (driving through a tunnel). But disk based persistence, which allows the data to survive an app restart, is currently only available in Firebase's iOS and Android SDKs.

这篇关于坚持使用Firebase网站的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆