Everyone is convinced of the importance of firebase rules and I took too long to put my application in production mode and here I am facing two problems:
when my application is initialized then my blocks do not contain any instructions relating to my database (or else I have a problem with my view) I see a pop-up which displays firebase permission denied twice I press " continue "and my application works with minimum security rules so I would like to delete this pop up which does not reassure the user
I disabled all the blocks, and I also see the pop ups
the other problem is the datachanged event which no longer works with a database protected at least with the REST APIs I was warned. in a post we mention a solution but I really don't understand it
The firebase component connects to the firebase on startup of the app, this is why you get the permissions exception. If there is no valid user connected at startup, you will get the exception.
If you ONLY use REST api, then this will not happen (unless your sign in credentials are incorrect)
Try the firebase error block, or the screen1 error block
thank you Tim for your observations indeed although I communicate with the database with the rest API I had left the database component and as I thought I used two databases in my project I had two so two pop ups
I would like to implement the datachanged event but in the post that allowed me to get to where I am I see on one side the parameters of a database and on the other this block
The contents in the join blocks match with the entries in the firebase config, but you need the user email and password details, their uid, and the target project bucket at the top in order to sign in and get dataChanged information back..
nothing happens when i modify my database i don't see anything in the webviewver i put visibility on true
according to what I understand the script is supposed to return the info which changes at the user level data i do not have in my base
what can i do to get the tag list when data changed ?
Are you using the webviewstring Changed event block and checking the value? The html file should load the webviewstring with data if the data changes. The html file will not actually display anything, if I remember correctly.
for now I am going back to his first tutorial i create an index.html file, I added a child node in the database that I reinitialized and nothing happens when I type the text in the child node as he do it
I loaded the html file and the script in the assets folder and now the modifications in the database made at the object level are visible in the webviewver
when I add another node it is not visible in the web viewer
I have several questions for example can I replace object by my project bucket?
I know that I will have to go back to securing the database but for now I will leave the rules on true to try to recreate the equivalent of the datachanged block which allowed me to update my database in real time