Alarm completion error #209

Closed
opened 2023-11-27 21:58:26 +00:00 by brandon.presley · 1 comment

We are getting an error when the timer finishes because you can't start foreground services from the background on android 12+

We are getting an error when the timer finishes because you can't start foreground services from the background on android 12+
brandon.presley added the
bug
label 2023-11-27 21:58:26 +00:00
Author
Owner
  at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel (ForegroundServiceStartNotAllowedException.java:54)
  at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel (ForegroundServiceStartNotAllowedException.java:50)
  at android.os.Parcel.readParcelableInternal (Parcel.java:4804)
  at android.os.Parcel.readParcelable (Parcel.java:4772)
  at android.os.Parcel.createExceptionOrNull (Parcel.java:3035)
  at android.os.Parcel.createException (Parcel.java:3024)
  at android.os.Parcel.readException (Parcel.java:3007)
  at android.os.Parcel.readException (Parcel.java:2949)
  at android.app.IActivityManager$Stub$Proxy.startService (IActivityManager.java:5302)
  at android.app.ContextImpl.startServiceCommon (ContextImpl.java:1908)
  at android.app.ContextImpl.startForegroundService (ContextImpl.java:1884)
  at android.content.ContextWrapper.startForegroundService (ContextWrapper.java:832)
  at android.content.ContextWrapper.startForegroundService (ContextWrapper.java:832)
  at com.massive.AlarmModule$getTimer$1.onFinish (AlarmModule.kt:144)
  at android.os.CountDownTimer$1.handleMessage (CountDownTimer.java:142)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loopOnce (Looper.java:240)
  at android.os.Looper.loop (Looper.java:351)
  at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run (MessageQueueThreadImpl.java:228)
  at java.lang.Thread.run (Thread.java:1012)```
```Exception android.app.ForegroundServiceStartNotAllowedException: at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel (ForegroundServiceStartNotAllowedException.java:54) at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel (ForegroundServiceStartNotAllowedException.java:50) at android.os.Parcel.readParcelableInternal (Parcel.java:4804) at android.os.Parcel.readParcelable (Parcel.java:4772) at android.os.Parcel.createExceptionOrNull (Parcel.java:3035) at android.os.Parcel.createException (Parcel.java:3024) at android.os.Parcel.readException (Parcel.java:3007) at android.os.Parcel.readException (Parcel.java:2949) at android.app.IActivityManager$Stub$Proxy.startService (IActivityManager.java:5302) at android.app.ContextImpl.startServiceCommon (ContextImpl.java:1908) at android.app.ContextImpl.startForegroundService (ContextImpl.java:1884) at android.content.ContextWrapper.startForegroundService (ContextWrapper.java:832) at android.content.ContextWrapper.startForegroundService (ContextWrapper.java:832) at com.massive.AlarmModule$getTimer$1.onFinish (AlarmModule.kt:144) at android.os.CountDownTimer$1.handleMessage (CountDownTimer.java:142) at android.os.Handler.dispatchMessage (Handler.java:106) at android.os.Looper.loopOnce (Looper.java:240) at android.os.Looper.loop (Looper.java:351) at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run (MessageQueueThreadImpl.java:228) at java.lang.Thread.run (Thread.java:1012)```
brandon.presley changed title from android.app.ForegroundServiceStartNotAllowedException to Alarm completion error 2023-11-27 22:08:19 +00:00
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#209
No description provided.