[英]How to insert data into firebase but it will displayed after being approved by the admin app?
I'm making 2 android app, app 1 is for the user, and app 2 is for admin, is it possible if I upload data to firebase from app 1, and will be displayed after being approved by the admin in the second application?我正在制作 2 个 android 应用程序,应用程序 1 供用户使用,应用程序 2 供管理员使用,如果我将数据从应用程序 1 上传到 firebase,并且在第二个应用程序中获得管理员批准后会显示,是否可以?
I have tried using 2 tables in firebase, but duplicate data occurred in admin and user app here my firebase database tables pict我曾尝试在 firebase 中使用 2 个表,但在我的 firebase 数据库表图片中,管理员和用户应用程序中出现了重复数据
I guess the simplest way is to add a field to every uploaded data which checks wether the data got checked by an admin or not.我想最简单的方法是为每个上传的数据添加一个字段,以检查数据是否被管理员检查过。
Then you could query in app 1 for the data that has for example checkedByAdmin: true
and in app 2 for checkedByAdmin: false
.然后,您可以在应用程序 1 中查询具有例如checkedByAdmin: true
的数据,并在应用程序 2 中查询checkedByAdmin: false
。
I don't think there would be an easier way.我不认为会有更简单的方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.