Cloud variable not storing in firebase

I am trying to save information in a cloud variable for my app, but it does not show up in my database even though I have input the API key and database url into the app and have the firebase public. Can someone help me find what I am doing wrong?
Here are screenshots:



Thanks!

1 Like

Your screenshots do not give the full picture. What does app variable iserID contains?

You are mixing between cloud variables and app variables in the same block. Is this intentional?

sorry! The app variable userID contains the userID from the login function. I mixed between cloud and app variables because I was following this thunkable tutorial: Cloud Variables - Save User Data to the Cloud in Thunkable Drag and Drop UI - YouTube

1 Like

That should work.

  1. Are you able to change ANY values in Firebase from within Thunkable?
  2. Have you added your Firebase database url and authentication key to Thunkable?
  3. Are your Firebase rules set to allow logged in users to read/write data?
  4. Are you signing in before running the code in those blocks?
  5. Is any data in Firebase changing?
  6. If you assign the app variable userID to a label, does the label display a value that also appears as a node in Firebase with the fields you defined? What happens if you replace all of the null blocks in the create object block with blank text strings ("")?
2 Likes
  1. No
  2. Yes
  3. Yes
  4. Yes
  5. No
  6. No. Nothing changes if I replace it with blank text strings.

I think I may make a new Firebase account and see if maybe I messed something up in Firebase.

1 Like

Since you can’t change ANY values in Thunkable, the problem does seem to be with Firebase itself.

As a simple test, you should be able to sign in and then do something like this:

image

You should then see this in Firebase:

image

Until you have that working, it won’t work to do anything else in Thunkable related to Firebase.

Okay. Yay! It worked when I started a new project. :slight_smile: I’m not quite sure what was wrong with it but sorry to take up your time!

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.