TrueTime returns wrong date time in multiple Android devices at sometimes
Ex: Samsung SM-S711U - Android 15.
In this device I got correct date yesterday. But today I got 38 days old date. I didn't get any exception in init.
I have called initialise method in Application class and another class
I have initialised like this,
TrueTime.build()
.withNtpHost(ntpHost)
.withConnectionTimeout(CONNECTION_TIMEOUT_MS)
.withLoggingEnabled(true)
.withSharedPreferencesCache(context.getApplicationContext())
.initialize();
TrueTime returns wrong date time in multiple Android devices at sometimes
Ex: Samsung SM-S711U - Android 15.
In this device I got correct date yesterday. But today I got 38 days old date. I didn't get any exception in init.
I have called initialise method in Application class and another class
I have initialised like this,
TrueTime.build()
.withNtpHost(ntpHost)
.withConnectionTimeout(CONNECTION_TIMEOUT_MS)
.withLoggingEnabled(true)
.withSharedPreferencesCache(context.getApplicationContext())
.initialize();