An advance thank you to everyone who takes the time to read this and reply.
Please note I have searched the forum thoroughly and not found satisfactory answers.
First I will explain about my app. I am developing a chat app in which you can chat with random people anywhere in the world. Everything is completely anonymous.
You open the app and press the CHAT button. This will put you into a chat room with another user so you can have a one-to-one chat. All chat rooms currently only support 2 people. This way you can have more intimate conversations.
All chats are via Firebase. So when User 1 writes a message it is uploaded to Firebase and shows on User 2’s phone. When User 2 writes a message it overwrites the existing message (by User 1) in Firebase and the new message is shown on User 1’s phone. A chat history is therefore only stored on the phones themselves. The only thing Firebase stores is the latest message.
The app does not need a user to log in. It foes not save user names, email addresses, locations etc. (I will place ads in the app and third party services may track such things but my privacy policy will make that clear.)
Now for my question:
At the moment the Firebase Rules are set to public so anyone can read and write. Apparently this means anyone access the database. However, I am not storing any user information on Firebase. The only thing that is stored is the latest message. What should my rules be?
I have a few other questions but I will ask them depending on the answer to this.
However, I haven’t used it in my app and can’t see anywhere for me to put it in the designer or blocks. All I’ve used is the url and the app seems to be working.