We are getting ANR reports when the app is being created. The reports point to the callback Simplenote.onCreate(...) and specifically to Simplenote.getAccountInfo(). This is due to database queries done in the main thread.
A possible fix would be to make these calls in a different thread than the main thread:
We are getting ANR reports when the app is being created. The reports point to the callback
Simplenote.onCreate(...)
and specifically toSimplenote.getAccountInfo()
. This is due to database queries done in the main thread.A possible fix would be to make these calls in a different thread than the main thread:
Expected
The app starts without ANR problems.
Observed
The app crashes after 5 seconds.
Reproduced
Note: to reproduce this issue, we have to have slow queries. This is hard to do but has been observed in Sentry reports.
Device Make: Nokia Device Model: Nokia 7 plus Android Version: 10.0.0 Simplenote Version: 2.23.0