Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to generate a push ID from the Console in the new Realtime Database?

I have a listing node in my Database and wanted to add data into it from the web console. I want to have a push ID as the key of the object. Something like this :

{
    "listing": {
        "4acd4g1OreMyo2FkW6DlQH7ZhvY2": {
            "name": "abc",
            "location": "xyz"
        }
    }
}

where '4acd4g1OreMyo2FkW6DlQH7ZhvY2' would be the auto generated push ID.

I know it can be done using the Android/iOS/JS SDKs (using the push method). But is this possible from the console?

like image 403
Rohith Nandakumar Avatar asked May 26 '16 07:05

Rohith Nandakumar


People also ask

How do you push data in Firebase realtime database?

Use the Push() method to append data to a list in multiuser applications. The Push() method generates a unique key every time a new child is added to the specified Firebase reference.

How does Firebase generate unique ID?

Firebase uses randomly generated unique identifiers when a new user is created. Then it always uses that same identifier for that particular user every time.

How do I get my Firebase ID?

Must be your Firebase project ID, the unique identifier for your Firebase project, which can be found in the URL of that project's console.


1 Answers

No, the console doesn't support it currently. I've been using firebase for a while and I've never needed it :)

like image 70
Seb Avatar answered Sep 18 '22 22:09

Seb