Crash on finishing rest timers #142

Closed
opened 2023-01-03 00:57:04 +00:00 by brandon.presley · 6 comments

BackgroundServiceStartNotAllowedException

I saw in the play logs this error when a timer finished. Supposedly this should happen when running a service from the background on android 8+ but I have never encountered this on any of my devices.

https://stackoverflow.com/questions/46445265/android-8-0-java-lang-illegalstateexception-not-allowed-to-start-service-inten

`BackgroundServiceStartNotAllowedException` I saw in the play logs this error when a timer finished. Supposedly this should happen when running a service from the background on android 8+ but I have never encountered this on any of my devices. https://stackoverflow.com/questions/46445265/android-8-0-java-lang-illegalstateexception-not-allowed-to-start-service-inten
brandon.presley changed title from BackgroundServiceStartNotAllowedException to Crash on finishing rest timers 2023-01-03 00:57:41 +00:00
brandon.presley added the
bug
label 2023-01-03 00:57:57 +00:00
Author
Owner

If anybody also gets this error please comment on this issue.

If anybody also gets this error please comment on this issue.
Author
Owner

Also saw java.lang.NoClassDefFoundError on getManager

Also saw java.lang.NoClassDefFoundError on getManager
Author
Owner

We could perhaps fix this issue and reduce the reliance on Android-specific kotlin code by using react-native-foreground-service

We could perhaps fix this issue and reduce the reliance on Android-specific kotlin code by using [react-native-foreground-service](https://github.com/voximplant/react-native-foreground-service)
Author
Owner

To be honest, most of my bugs are caused by my lack of skill using Kotlin

To be honest, most of my bugs are caused by my lack of skill using Kotlin
Author
Owner

Haven't seen any of these crashes since 1.127 so i'll close this. But if I see it again ill re-open.

Haven't seen any of these crashes since 1.127 so i'll close this. But if I see it again ill re-open.
Author
Owner

Unfortunately I saw this error again on version 1.131. I am truly stumped with this, we are requesting foreground execution, and 99% of peoples apps work without crashing. I can't replicate this on any emulator or real device, I'm only seeing it on someone's phone from the Play console logs.

Unfortunately I saw this error again on version 1.131. I am truly stumped with this, we are requesting foreground execution, and 99% of peoples apps work without crashing. I can't replicate this on any emulator or real device, I'm only seeing it on someone's phone from the Play console logs.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: brandon.presley/Massive#142
No description provided.