Is there a way to get the date and time protected from unauthorized access on iPhone?

For various reasons, I need to get the current date and time from the iPhone that cannot be associated with the user. Yes, I saw how you can check the server (for example, here ), but it is not immune to falsification if you think about it and think about it.

There are two knee-jerk reactions I expect to hear:

  • Use GPS time.
  • It's impossible.

In response to another question, I described my research in this matter . Summarize:

  • GPS time shifts with user-defined settings.
  • The iPhone definitely has an internal time and date that is protected against unauthorized access, as shown when the date-time returns after Set Automatically in Settings> General> Time and date have returned to on even in the sediment shelter.

I want to know how to access this time, protected from unauthorized access.


Edit

To be clear, the server solution is not suitable. Firstly, it could be a fake. For another application, you must work without a network connection.

+6
source share
1 answer

Assuming you always have Internet access, you can implement a class or object that connects to a remote network time protocol server.

Here's the open source GitHub project that should launch you , fooobar.com/questions/197356 / ....

+2
source

Source: https://habr.com/ru/post/949070/


All Articles