firebase / firebase-unity-sdk

The Firebase SDK for Unity
http://firebase.google.com
Apache License 2.0
231 stars 38 forks source link

[FR]: An easy / optimal way to get Server Time #1150

Open vg-swift opened 4 hours ago

vg-swift commented 4 hours ago

Description

We have a custom Firebase Function implemented ot request Server Time, and the app always requests it at least once per hour (or whenever something happens in the game).

Our current issues:

If you have any other ideas, please let us know.

API Proposal

No response

Firebase Product(s)

All

Targeted Platform(s)

Apple Platforms, Android, Desktop

google-oss-bot commented 4 hours ago

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

argzdev commented 3 hours ago

Hey @vg-swift, thanks for reaching out. This seems more of an architectural design problem. I'd recommend posting this question in Stack Overflow to get better help. There are likely more engineers that have best practices and useful advices regarding this topic in Stack Overflow. That said, I'll go ahead and close this thread. Thanks!

vg-swift commented 3 hours ago

It would still be nice if it would be a default feature from Firebase, that's why I submitted this as Feature Request.

There are already a couple of threads like this on StackOverflow & Reddit, but they all mostly suggest using the ServerValue from RealtimeDatabase, which has its own drawbacks.

argzdev commented 2 hours ago

Thanks for the getting back to us. I'm not exactly sure what optimization are we looking for here. Could you share more details of what specific feature you'd like to have? Usually for the most parts, the Server Timestamp should be enough. I'm curious to know more about the drawbacks, could you also share some details about that too?