简体   繁体   English

登录电子邮件无法将数据写入数据库时​​的Firebase Android-Studio

[英]Firebase Android-Studio when login email cannot write data into db

Now, I had finished email login system, but when I login an email account, I can't write data into my database. 现在,我已经完成了电子邮件登录系统,但是当我登录电子邮件帐户时,无法将数据写入数据库。 When I logout the account it can write data into my database. 当我注销该帐户时,它可以将数据写入我的数据库。

Double check your database rules. 仔细检查您的数据库规则。 Make sure your write permission is not set to null. 确保您的写入权限未设置为null。 ".write": "auth != null" “ .write”:“ auth!= null”

Make write true in firebase and put the write code after login is success. 登录成功后,在firebase中将write设置为true,然后放置写代码。 ie inside task is sucessful 即内部任务成功

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM