Skip to content
This repository has been archived by the owner on Mar 16, 2021. It is now read-only.

ANR that leads to app crashing, support needed #142

Open
Duna opened this issue Sep 27, 2020 · 1 comment
Open

ANR that leads to app crashing, support needed #142

Duna opened this issue Sep 27, 2020 · 1 comment

Comments

@Duna
Copy link

Duna commented Sep 27, 2020

Screenshot_20200927-185251_Play Console

See attached picture, is self explanatory

The main issue is when update and migrate your data from one app version to next one with versioned Preferences and a onUpgrade() method - onUpgrade took more than 5 seconds and the foreground service crashes since startForeground() not reached within the 5 seconds.

@Duna Duna changed the title ANR that leads to app crashing ANR that leads to app crashing, support needed Sep 27, 2020
@Duna
Copy link
Author

Duna commented Sep 27, 2020

Is it ok to initialize Tray on separate thread(when onUpdate is called)?

What happens if I read/write data on main thread, and the initialization(onUpdate) not reaches the end, done on the separate thread, different than main looper.

Is it a way to avoid ouUpdate when having new release of the app on the market?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant