Get Automatic Network Time and Date

I just want to know if we can get network time/date using codes even if user didn’t activate it on the SETTINGS.

Because not all users will consider using automatic time/date on the settings, so I’m just curious of using it in my app only to store correct time/date even it is disabled on the settings. TNX

I don’t think Apple will let you set the time on their devices. I’m unsure about Google, but this would be seen as a security issue. But if you want to get the time and let the user know how much their clock is off by, there are several REST API based services that you can use network.request() to contact to get the current time.

Rob

Hey Rob,

well the purpose of this is to set the game time on my upcoming game, so even if the user is offline or will alter the clock for any game enhancements, my game will still follow the network time. im not planning to change the mobile’s date and time, it’s user’s  preference anyways, i just want to avoid cheating on my game.

~Rhaine

Then something like:   http://www.timeapi.org/

Will take care of you.

Rob

I don’t think Apple will let you set the time on their devices. I’m unsure about Google, but this would be seen as a security issue. But if you want to get the time and let the user know how much their clock is off by, there are several REST API based services that you can use network.request() to contact to get the current time.

Rob

Hey Rob,

well the purpose of this is to set the game time on my upcoming game, so even if the user is offline or will alter the clock for any game enhancements, my game will still follow the network time. im not planning to change the mobile’s date and time, it’s user’s  preference anyways, i just want to avoid cheating on my game.

~Rhaine

Then something like:   http://www.timeapi.org/

Will take care of you.

Rob