Firebase DB Append Value

Hi @storkgdev, This suggestion may work

Step - 1 Creating a Realtime Database
Go to firebase console create a new project and add a new Realtime Database
Remember to change the rules, given below

 {
   "rules": {
     ".read": true,
     ".write": true
 }
 } 

Remember to Publish the changes.
This will help to get and write the Data

Step 2 - Connect your Firebase to your App

  1. On the Firebase Database at the Data,

  2. Copy the URL,

  3. Go to Kodular and Paste it on Firebase URL

  4. On the Firebase project left panel,

  5. You have a Setting Icon,

  6. Press on it and menu popups,

  7. Press on Project Settings,

  8. You would be redirected to a new page,

  9. Copy your Web API,

  10. Go to Kodular paste it in the firebase token.

Step - 3 Blocks
Set your Blocks as the following

These blocks means that
When the Screen starts the firebase gets the value of a specific tag and if the value is not there it will create an empty list.
After the Firebase gets the value it checks the tag, if its the correct tag then it will check its value, if the value is create empty list which means that there is not value it will store an empty list
Now when button is clicked it will append the value as already the value has been stored thus previous value empty error will not appear.

2 Likes