How can I make a data loaded from firebase load in a push

0 favourites
  • 5 posts
From the Asset Store
Data+ is the best Data Management solution for Construct 3. It contains 4 Addons (Plugin & Behavior).
  • How can I make a data loaded from firebase load in a push way, that is, if it is modified at any time in the game in firebase, such modification is received in the game without having to load it every 5 seconds avoiding the cost of loading it every 5 seconds?

    Thanksss!!

  • Generally speaking, you could check a version number instead of (down)loading the entire dataset to check for changes. If the version doesn't match, then you would update to the latest version.

    You can try to only request the specific data needed from the server, every single time you need it, so that it will always be the latest instead of loading everything into memory ahead of time.

    Updates also done normally during scheduled maintenance rather than real time.

  • I only need it for one item of each user, for example, amount of money: ( data) to check if the data is varied I have to load it mandatory...

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You can try to sync the local data with the server, and only check/validate when making changes such as spending money or gaining money. Gaining money can be handled the same on the client and server if its generally automatic such as in an idle game. Then you can reduce the frequency of syncing to check if the values match much less intermittently.

  • Since that is done with firebase, please help me...

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)