Firebase或SQLite [英] Firebase or SQLite

查看:191
本文介绍了Firebase或SQLite的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是android开发的新手,目前正在开发使用SQLite作为数据库的应用程序.问题是,我想在使用该应用程序的其他人之间共享信息.据我所知,仅使用SQLite只能使我在本地存储用户信息.有没有一种方法可以使用SQLite同步每个用户的所有数据,或者如果您想与使用该应用程序的每个人共享数据,Firebase是否可以选择?还是您建议一个更好的选择?

I am new to android development and I am currently developing an application using SQLite as my database. The problem is, I want to share information across other people using the application. As far as I can tell, using SQLite alone will only allow me to store user information locally. Is there a way to sync all data for each user using SQLite, or is Firebase the option to if you want to share data with everyone using the app? Or is there a better option that you recommend?

推荐答案

一些事情.

1)Firebase是免费的,除非您的应用起飞并且您有很多用户对其API进行调用.

1) Firebase is free unless your app takes off and you have a lot of users making calls to their APIs.

2)Firebase不仅限于推送通知.

2) Firebase is a lot more than just for push notifications.

SQLite很棒.它基本上是Firebase,就在您的设备上(减去Firebase提供的东西(他们的服务).但是,如果我摔断手机,SQLite数据库中存储的信息就会与我的手机一起消失.这是一个很大的禁忌

SQLite is great. Its basically firebase, right on your device (minus the things Firebase offers (their service). HOWEVER, if I drop and break my phone, the information that is store in the SQLite database dies with my phone. That is a big no-no.

Firebase/Parse-Server非常相似.我使用Parse-Server是因为我是在Facebook转储之前使用Parse开发的.但是,Firebase使您的工作变得容易得多.您可以在一天之内编写一个非常深入的CRUD系统,然后在此基础上进行构建.您可以将信息本地存储在计算机上(缓存).您可以轻松设置推送通知,但是我喜欢One Signal.

Firebase/Parse-Server are very alike. I use Parse-Server because I developed with Parse before Facebook dumped it. However, Firebase makes your job a lot easier. You can write a pretty in depth CRUD system in a day and then just build off of it. You can store information locally on the machine (cache). You can easily set up push notifications, however I like One Signal.

如果我刚开始并且有同样的问题,我会去Firebase.您不必担心为SELECT和查询编写代码. Firebase可以完成所有工作.如果您通过仪表板进行任何更新,该应用程序也将实时更新.非常棒.

If I was starting out and I had that same question, I would go Firebase. You do not have to worry about writing code for the SELECT and queries. Firebase does it all. If you update anything through the dashboard, the application will update in real time too. Its pretty great.

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

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