CalendarNotification icon indicating copy to clipboard operation
CalendarNotification copied to clipboard

App is killed by the system on Android 9

Open mpszczolka opened this issue 6 years ago • 5 comments

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.

mpszczolka avatar Aug 19 '19 20:08 mpszczolka

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.

mrdo23 avatar Sep 28 '19 23:09 mrdo23

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 avatar Oct 03 '19 11:10 mwoz123

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 ;)

mwoz123 avatar Oct 03 '19 11:10 mwoz123

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 avatar Oct 07 '19 16:10 mwoz123

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.

mwoz123 avatar Oct 15 '19 05:10 mwoz123