-
Notifications
You must be signed in to change notification settings - Fork 444
[Feature request] Get Firebase timestamp #132
Comments
Thanks for the links to the SDK's, that's really helpful. Do you also have a suggestion how you'd want to use this feature? |
@EddyVerbruggen - No worries! I believe the most efficient way to use this is to follow the steps of the JS version of Firebase (link to documentation): var timestamp = Firebase.ServerValue.TIMESTAMP; Or we could wrap it in a function so the timestamp is retrieved from the server upon method call: var timestamp = Firebase.ServerValue.TIMESTAMP(); Currently |
Note to self: iOS doc, Android doc. Scroll down to 'Server Timestamps' for both platforms. |
Hey @NordlingArt, I've now added a way to fill a property serverside based on this placeholder. Check the doc. It's available now in the master (default) branch of this repo so if you want to test it, install the plugin from GitHub. Is there anything else you need regarding this? |
@EddyVerbruggen - Sorry for the late response. This is perfect, thanks! |
Android: https://firebase.google.com/docs/reference/android/com/google/firebase/database/ServerValue
iOS: https://firebase.google.com/docs/reference/ios/firebasedatabase/interface_f_i_r_server_value.html#a39c5a614879f2040d9355977a4879071
I feel like this should be a simple task to implement :) It's needed to prevent users to manipulate their local timestamp.
The text was updated successfully, but these errors were encountered: