Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 2 Support (Qt 5) › Firebase request

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #24224

    Sigmunde Mayitoukou

    Hello,I am Sigmund and i am working on a project and i need to make a request to pull out informations from one specific user, i made the request but it’s not working, i don’t don’t what i am doing wrong. This is the code i made to retrieve the name from the database.

    Where firebaseDb is the id of the FirebaseDatabase element, and i also privided the confi, either the projecId, databaseUrl,apiKey, and the applicationId for it.

    Thanks in advance! , this how my database looks like.

    firebaseDb.getUserValue("name",function(success, key, value){
    if(success) {
    console.log("Success: object retrieve", value)
    }else {
    console.log("DB write error:")
    }
    })

    My database looks like this
    {
    “users”: {
    “userId”: {
    “expdate”: “xxxx”
    “name”: “cccc”
    “username”: “dddd”
    }

    }
    }

    The userId is a group of caracteres generated automatically by firebase at the insertion.

    #24263

    Alex
    Felgo Team

    Hi,

    is there any error that you get, that could help to find out what is wrong? Is the user successfully authenticated in your app before you call getUserValue?

    Best,
    Alex

    #24265

    Sigmunde Mayitoukou

    Hi Alex, thanks for your time to responding, i already solve the issue. It was rules problem in the databse.

    Thanks again, I appreciate.

Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded