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 .
TIMAI2
November 17, 2021, 6:38pm
5
Please show an image of your firebase properties in the designer
1 Like
Find bellow the properties of DB in the design and Fire base Rules
TIMAI2
November 17, 2021, 9:08pm
7
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:
You then send some data using the companion app (NOT the emulator which will not work with firebase )
and the data is sent to Firebase Realtime Database
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 ?!
TIMAI2
November 17, 2021, 10:39pm
9
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.
TIMAI2
November 18, 2021, 8:22am
11
Can you enter data directly to your firebase console?
2 Likes
See how web api key is generated
It gets generated once you go into the "Authentication" section for the first time
[image]
Go to Authentication, press get started
[image]
And then go again tp project settings and you will be able to see web api key
[image]
2 Likes