"Reliable" iOS System Time?

Hello,

I understand how to get the System Time of a device using System.DateTime, but the user could theoretically tamper with this by changing the date/time on their device. Is there any way to get a more reliable time (presumably requiring an internet connection), like querying Game Center or the Apple Store, or some other reliable source? Or might there be another, more reliable way to measure time (in between the app being opened and closed) that doesn’t rely on System.DateTime?

  • Joe

Time itself will always be insecure if you’re thinking of using it for security purposes. You could always have a small php script that asks your server what time it is and pass that through if you wanted.