Hello, I am using google account login when logging into the app I designed. Then it throws me on (Screen2) page. I want only those logged in with google to be able to write their data to firebasetabase, while those who are not logged in with google can only read what comes from firebasetabase. What blocks should I enter on the Screen2 page for this and what should I write in the firebase rules section?
This part no problem… but the firebase part you didn’t show…
Once users log in you need to get token and that token will become us firebase URL, then only your read or write will become effective…as per your rules there is no project bucket itseems.
Have a lookinyo this blocks you will come to know what else need to add further to check up the write part which is only by authenticated users… since you didn’t add firebase bucket as get id you are unable to read the firebase and after releasing the rule you are about to read.
I couldn’t ask a question because the topic was closed there. I don’t have the block shown in red, I couldn’t find it. And what is the reason why we do it offline/online?
What is done here is to transfer user information to firebaseDB and use it. What I want to do is that the person who logs in with google (it doesn’t matter who) can type. Pulling registration information from Firebase authencticaton/users, not FirebaseDB.
To be more understandable:
There are two applications in my project, the first application is the Admin Panel that the admins will use. The second application is an application that can be downloaded from the playstore, where users can read what is written. What I’m trying to do is secure the writing part by logging into the Admin panel with google. The reading part, the second application, will not have any google verification.
The method didn’t work. no matter what I do, firebase doesn’t recognize me when writing to screen2. What blocks should I enter in Screen2 for it to recognize me as administrator? Is there a clear answer to this question?
Then what about users? If admin only want to write mean, how will you save each users details in firebase. I tried with simple way and got working. There by each user can write but read , authenticated people only to their account
I followed this step by step but it didn’t work. I can no longer read or write data. I am getting FirebaseError Permission denied error. Is there anyone who can support me to solve my problem for a fee?
I’m starting to try this now. It will be an ignorant question, but when I go to page two, what blocks should I enter in that picture in order to write a text on fb.