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

Forums

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

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

    Edward

    Hey!

    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]
    
    OR 
    
            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?

    Thanks

     

    #21420

    Günther
    Felgo Team

    Hi Edward,

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

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

    Best,
    Günther

    #24307

    Abhilash

    Only once the value is fetched if we use multiple keys at runtime.!!!

    After once getValue() is not working.??

    realtimeValueKeys: ["public/testValue","public/testJSON","public/usersIDs","public/news"]

     

    #24311

    Alex
    Felgo Team
Viewing 4 posts - 1 through 4 (of 4 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