Error to connect to FireBase

Hello I am Making a Register & Login In My App but I am Facing Errors:
[com.firebase.client.Firebase com.firebase.client.Firebase.child(java.lang.String)]
[Error from Companion: Invalid Firebase url specified].

How can i fix these issues? Any solution please.

Hello user, and welcome to the App Inventor Community!
Could you please post your relevant blocks and/or your .aia file, so we can take a look at it?

1 Like

Go to the designer, firebase property. I hope in the firebase url you may selected Default url. Replace it with your firebase url

2 Likes

Thank you , i create a simple appl for sign test ! for the fire Base i write the correct URL and Token ,i can't understand why still have the same error .

Please show an image of your firebase properties in the designer

1 Like

2 3
Find bellow the properties of DB in the design and Fire base Rules

I am not sure why things are not working for you, all I can do is show you that it does work:

I get all my settings from the Project Overview/Project Settings page on the Firebase Console:

// Your web app's Firebase configuration
const firebaseConfig = {
  apiKey: "AIzaSyB3m_tYdUwgH61xBV2G8KZJL0m1pTpXSV4",
  authDomain: "timai2.firebaseapp.com",
  databaseURL: "https://timai2.firebaseio.com",
  projectId: "timai2",
  storageBucket: "timai2.appspot.com",
  messagingSenderId: "678881131398",
  appId: "1:678881131398:web:95e4dfeb3d15e3f11bb287"
};

The key ones being the apiKey and the databaseURL.

These get entered to your Firebase properties in the designer:
image

You then send some data using the companion app (NOT the emulator which will not work with firebase)

image

image

and the data is sent to Firebase Realtime Database
image

You can also test using the web component:

3 Likes

This what i have i

n the settings of the project, what about the appID ,i guess i have a prbm of key ?!

OK, it doesn't look like you have completely set up your Firebase account and project.

See here:

2 Likes

Thank you for sharing, now i followed all the steps to create firebase, but at the design level when I write the database URL I get an error.6

Can you enter data directly to your firebase console?

2 Likes

See how web api key is generated

2 Likes