DP-3T / dp3t-app-android-demo

The DP3T-App for Android
Mozilla Public License 2.0
323 stars 79 forks source link

Time must be set correctly #58

Open loleg opened 4 years ago

loleg commented 4 years ago

Sporadically there is a notification and error in the app about the time not being set correctly. I've checked that the phone (Nokia TA-1046, Android 10) is using network time. It seems to go away when on WiFi, but I have never had an issue like this in another app.

There is nothing special about my 4G network (Sunrise) or customer grade SIM card. Setting the time manually to 5s precision with https://time.is and restarting the app worked around the issue. The app should automatically change the setting, or at least provide some guidance (e.g. alternative time sync app) to the user.

I'm using the CH pilot build 0.5.0, and if you want can repost the issue in https://github.com/DP-3T/dp3t-app-android-ch

loleg commented 4 years ago

A good option would be to stay independent of the device/network time using NTP sync, e.g. with a library like https://github.com/instacart/truetime-android