Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!


OverviewFelgo 2 Support (Qt 5) › Multiple Firebase realtime value keys?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #21390



    I am trying to implement full realtime updates on my app,

    I am able to set a realtimeValueKey, with my firebase database, but am looking to add more to the list?

    I have tried several different attempts but they either return the last key in the list, or none at all?


    If I were to do:


        readonly property string dbKeyAllCalendarItems: "groups" + "/" + groupName + "/" + subGroupName
        readonly property string dbKeyAllUsers: "groups" + "/" + groupName + "/" + "users"
            realtimeValueKeys: [dbKeyAllCalendarItems]
            realtimeValueKeys: [dbKeyAllCalendarItems] && [dbKeyAllUsers]
    realtimeValueKeys: [dbKeyAllCalendarItems] || [dbKeyAllUsers]
    realtimeValueKeys: { [dbKeyAllCalendarItems]; [dbKeyAllUsers] }

    Amongst other attempts, none work!?!


    I need to receive updates for specified keys, which I have working for one key, but want to add If() {…} else if{…} else if {…} for multiple keys,


    What would fix this? How do I add multiple realtimeValueKeys to the list for updates on each of them?




    Felgo Team

    Hi Edward,

    you should use the regular QML / JavaScript way of setting a string list:

    realtimeValueKeys: ["public/testValue", "public/testValue2"]


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

RSS feed for this thread

You must be logged in to reply to this topic.