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.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
create apps
create games
cross platform
native performance
3rd party services
game network
level editor
easiest to learn
biggest time saving
best support