instacart / truetime-android

Android NTP time library. Get the true current time impervious to device clock time changes
https://tech.instacart.com/truetime/
Apache License 2.0
1.42k stars 193 forks source link

Exception thrown on Scheduler.Worker thread. Add `onError` handling #159

Open YevgenBlazhko opened 10 months ago

YevgenBlazhko commented 10 months ago

Hello. I have a serious issue with the TrueTime library in my Android project, affecting approximately 15% of our users according to Firebase statistics. I cannot reproduce it personally, but Crashlytics consistently reports crashes.

It's worth noting that almost all crashes are occurring on Honor devices. The stack trace makes it challenging to understand the root cause.

Screenshot 2023-12-21 at 15 38 15 Screenshot 2023-12-21 at 15 38 03

My main configs:

compileSdkVersion 34 defaultConfig { applicationId "my.app.domain" minSdkVersion 23 targetSdkVersion 34 versionCode 110 versionName "3.6.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary true multiDexEnabled true }

How can it be solved?