Skip to content
This repository has been archived by the owner on Apr 8, 2020. It is now read-only.

App is killed by the system on Android 9 #343

Open
mpszczolka opened this issue Aug 19, 2019 · 5 comments
Open

App is killed by the system on Android 9 #343

mpszczolka opened this issue Aug 19, 2019 · 5 comments

Comments

@mpszczolka
Copy link

Really great app, but it doesn't work on Xiaomi Redmi 7, constantly killed by the system (I guess...).
Of course, I set all battery and optimizations settings as recommended... Clicking on the app I'm getting all missed notification...

I configured Tasker job (automation tool) starting Calendar Notification every 5 minute, works better, but bringing app to the front...

I have several other applications (gps tracking, step meter), also excluded from battery optimisation and these applications work all the time. So something is wrong with your app.
Worked fine on my previous device, Redmi 5 for 2 years.

Android: 9PKQ1.180904.001
MIUI: 10.3.6.0

If you need logs, please give me instructions how to gather them.
Thanks a lot.

@mrdo23
Copy link

mrdo23 commented Sep 28, 2019

I also have the same problem on my Honor 10. I have set the app to 'Manage Manually' on Android 9 but the app is closed after a few seconds rendering it useless.

Please let me know if there is a fix.

@mwoz123
Copy link

mwoz123 commented Oct 3, 2019

Same thing on MyPhone pocket pro - plain Android 9.0 (with GMS) phone.
App version :5.0.5

@mpszczolka I belive log can be obtain by 'adb logcat' - example :
https://support.esri.com/en/technical-article/000017058
But I don't think it will be much useful as issue seems to be due to changes in new Android version.

Guy's any ideas/workaround?

@mwoz123
Copy link

mwoz123 commented Oct 3, 2019

Ps: @mpszczolka maybe you should rename issue title to '(..) android 9' (instead "(..) Xiaomi Redmi 7" as it seems more general.
So more users should find it and "vote" for fix ;)

@mpszczolka mpszczolka changed the title App is killed by the system on Xiaomi Redmi 7 App is killed by the system on Android 9 Oct 4, 2019
@mwoz123
Copy link

mwoz123 commented Oct 7, 2019

Not sure what is used in code but it seems from AlarmManager might be right schedluer for android 9+:
https://developer.android.com/guide/background

I don't know kotlin so I'm not sure.

Here's another link that might be usefull for developers for solving issue:
https://stackoverflow.com/questions/51587458/android-p-beta-alarmmanager-notifications-not-working

@mwoz123
Copy link

mwoz123 commented Oct 15, 2019

I found potential workaround:

https://innov8tiv.com/how-to-stop-my-android-from-killing-apps-in-the-background/amp/

I disabled all battery/app optimalization, "locked" the app but it still gets killed on my plain Android 9.0, but maybe it will help on someone else phone.

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

No branches or pull requests

3 participants