Home / IOS Development / Detect manual change in Date and time: iOS programming

Detect manual change in Date and time: iOS programming



I am developing an app that works with time-sensitive data and needs the timestamps for the operations to be correct. So I have a question:

Is there a way to check if the user has changed the iPhone date and time manually? So if he follows these steps:

  1. Kill my app and connect his WiFi / mobile data

  2. Set the clock backwards

  3. Perform the time-sensitive operation that records the time of the operation (which is actually earlier and is incorrect)

  4. Kill my app

  5. Connect your phone to the network and set the date and time to the correct value.

  6. Launch my app

I will not be able to track the time, and my server will get the wrong timestamps for that operation in such a situation, which I will avoid. How can I avoid this on iOS (13 and later)?


Source link