如何只允许我的应用程序访问没有登录的Firebase? [英] How to allow only my app to access firebase without a login?
问题描述
在此先感谢。
Firebase实时数据库不允许访问未授权用户。
使Firebase数据库规则适用于读取& (辛坦·索尼)说的写的不是这样。
因此一个认证机制是最好的办法!
I am storing my app's data on Firebase and this being my first project on Firebase is proving to be much more difficult than I thought. I have gone through the official documentation and it says that we can login a user with their email and password or use other login options like Google or Facebook etc. However I don't want user's to login to my application but only read and write data to firebase if they are using my app. Right now I am using public rules for my firebase but then anyone with a reference to my firebase URL can read and write to the database. How do I overcome this?
Thanks in advance.
Firebase Real-Time DB does not allow access to Un-Authorized Users.
Making the Firebase Database Rules true for Read & Write is not the way as (Chintan Soni) said.
So a Authentication mechanism is the best way!
这篇关于如何只允许我的应用程序访问没有登录的Firebase?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!