-
-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash when i wake app #4896
Comments
See https://developer.android.com/guide/components/foreground-services#background-start-restriction-exemptions Alternatively you could make use of the last point: "The user turns off battery optimizations for your app" |
Hm well, let's try if doing that in |
FYI this has been a long-standing issue, but I didn't care about it so far because I put this in the "Android API is inconsistent and stupid" drawer, hoping that Android will fix it. As @Helium314 cited, the place where we call this method should be totally fine according to the documentation. Unless of course the Android system does not recognize "onStop" as "transitions from a user-visible state, such as an activity" but only "onPause". We will see. If this does not solve the issue, then we'll just catch the exception and ignore it. |
App crash when i wake app after app is background
How to Reproduce
Versions affected
v52.0-beta1
Pixel 6 - Android 13
The text was updated successfully, but these errors were encountered: