we are creating a location-enabled application in which users use this application to record certain events in a field.
An important part of the event data is when the event occurred. This is not a problem when the user is connected to the network, but we also support situations when the user is offline (by remembering and then synchronizing events).
There may be situations when users are disconnected and they change the time on the phone, so the time of the event is mistakenly recorded.
So, what would be the best way to ensure the right time, regardless of the user's actions, given that the device can be turned off. Some ideas:
- GPS time. Can I get it?
- Tracking system time changes made by the user?
- Any other idea?
Note: time requires a second accuracy, approximately a minute accuracy will be in order.
Note2: we are creating mobile applications for Android and iPhone, so I'm interested in common solutions, as well as solutions specific to any of these two platforms.
android iphone
Peter Knego
source share