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 app is backgrounded #445
Comments
Thanks. This is very helpful. Maybe the same as #439 but with more details ;) |
@Catfriend1 Ich kann den Fehler auf meinem Handy leider nicht reproduzieren. Trotzdem habe ich mal eine Testversion(Etar-Calendar-debug.zip) von Etar erstellt die das Problem eventuell behebt. Wäre gut wenn du das bei dir mal testen könntest. |
@Gitsaibot Danke, ich werde sie die Tage mal aufspielen und sehen wie es läuft. Muss dann auch öfter mal ins Logcat sehen, da ich mir zur Zeit für "zuverlässige" Termin-Popups mit der Zusatz-App "Calendar Notifications" behelfe, die das Problem mit Eta "cachiert". |
Coming from #497, I can't download the zip file, the link is broken? |
No the link should work. Did you block scripts ? |
My bad, sorry, worked with another browser. Installed the apk. Notifications are shown again. It works when the app is not running in the background as well as when the device is on stand by. However, before the notification of the appointment is shown, there is another one saying "Example Service" that's shown shortly, but doesn't remain in the notification bar. The appointment's notification is then shown as expected. Thank you! |
+1 works |
AppV: 1.0.14
Android 8.1 on Xiaomi mi8 MiUi10
02-06 19:00:00.128 E/AndroidRuntime(25593): FATAL EXCEPTION: main
02-06 19:00:00.128 E/AndroidRuntime(25593): Process: ws.xsoh.etar, PID: 25593
02-06 19:00:00.128 E/AndroidRuntime(25593): java.lang.RuntimeException: Unable to start receiver com.android.calendar.alerts.AlertReceiver: java.lang.IllegalStateException: Not allowed to start service Intent { cmp=ws.xsoh.etar/com.android.calendar.alerts.AlertService (has extras) }: app is in background uid UidRecord{d0b4c27 u0a159 RCVR idle change:uncached procs:1 seq(0,0,0)}
02-06 19:00:00.128 E/AndroidRuntime(25593): at android.app.ActivityThread.handleReceiver(ActivityThread.java:3229)
02-06 19:00:00.128 E/AndroidRuntime(25593): at android.app.ActivityThread.-wrap17(Unknown Source:0)
02-06 19:00:00.128 E/AndroidRuntime(25593): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1697)
02-06 19:00:00.128 E/AndroidRuntime(25593): at android.os.Handler.dispatchMessage(Handler.java:106)
02-06 19:00:00.128 E/AndroidRuntime(25593): at android.os.Looper.loop(Looper.java:164)
02-06 19:00:00.128 E/AndroidRuntime(25593): at android.app.ActivityThread.main(ActivityThread.java:6648)
02-06 19:00:00.128 E/AndroidRuntime(25593): at java.lang.reflect.Method.invoke(Native Method)
02-06 19:00:00.128 E/AndroidRuntime(25593): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
02-06 19:00:00.128 E/AndroidRuntime(25593): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:818)
02-06 19:00:00.128 E/AndroidRuntime(25593): Caused by: java.lang.IllegalStateException: Not allowed to start service Intent { cmp=ws.xsoh.etar/com.android.calendar.alerts.AlertService (has extras) }: app is in background uid UidRecord{d0b4c27 u0a159 RCVR idle change:uncached procs:1 seq(0,0,0)}
02-06 19:00:00.128 E/AndroidRuntime(25593): at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1531)
02-06 19:00:00.128 E/AndroidRuntime(25593): at android.app.ContextImpl.startService(ContextImpl.java:1487)
02-06 19:00:00.128 E/AndroidRuntime(25593): at android.content.ContextWrapper.startService(ContextWrapper.java:660)
02-06 19:00:00.128 E/AndroidRuntime(25593): at android.content.ContextWrapper.startService(ContextWrapper.java:660)
02-06 19:00:00.128 E/AndroidRuntime(25593): at com.android.calendar.alerts.AlertReceiver.beginStartingService(AlertReceiver.java:137)
02-06 19:00:00.128 E/AndroidRuntime(25593): at com.android.calendar.alerts.AlertReceiver.onReceive(AlertReceiver.java:840)
02-06 19:00:00.128 E/AndroidRuntime(25593): at android.app.ActivityThread.handleReceiver(ActivityThread.java:3222)
02-06 19:00:00.128 E/AndroidRuntime(25593): ... 8 more
The text was updated successfully, but these errors were encountered: