Hi, I want firebase database to store separate data for separate users that log in using google login. How can I send data from app inventor to do so? In other words I want a separate directory for separate users identified by their userid so that they can have access to their own data only. I think the solution lies in using the following code
// These rules grant access to a node matching the authenticated
// user’s ID from the Firebase auth token
{
“rules”: {
“users”: {
“$uid”: {
“.read”: “$uid === auth.uid”,
“.write”: “$uid === auth.uid”
}
}
}
}
in firebase database but since I am not a programmer I have no idea how to do this from app inventor. Though I have successfully used the following code and am able to write to firebase database.
// These rules give anyone, even people who are not users of your app,
// read and write access to your database
{
"rules":
{
".read": true,
".write": true
}
}