How do you access the "Auto Time" or "Network-Based Time" on Android?

Hi,

I was wondering how you would access a Android mobile device’s Automatic Time in the time settings within Unity? I would need to check that the time is automatic (or internet based) to ensure players don’t change the day date to receive an item more than once per day. (I have items given out once every 24 hours for playing)

19512-bjw9x.jpg

I can’t seem to find any documentation on this. I’m writing in JS. If anyone has any info or references it would be great. All I can find is the info below but I can’t seem to ind out how to make it work in Unity, or if it’s even possible. I’m sure a LOT of people could find this useful.

Accessing Automatic Time on Android

Thanks in advance.

so you want to avoid “candy crush” syndrome in your game… ha? :slight_smile:
it a tricky question, to really solve it you need to check time with online server but you need to consider time zone shifting or to check UTC which should be the same all over the world.

i found this link, didn’t check it but you might find it useful…