Massive/android/app
Brandon Presley 07c704841d Use foreground service for alarm completion
Many of our errors in production are caused
by the alarm module finishing. In devices after
android version 7 we are "required" to use
startForegroundService or else the following
error supposedly occurs:

Exception java.lang.IllegalStateException:
  at android.app.ContextImpl.startServiceCommon (ContextImpl.java:1725)
  at android.app.ContextImpl.startService (ContextImpl.java:1680)
  at android.content.ContextWrapper.startService (ContextWrapper.java:731)
  at android.content.ContextWrapper.startService (ContextWrapper.java:731)
  at com.massive.AlarmModule$getTimer$1.onFinish (AlarmModule.kt:144)
  at android.os.CountDownTimer$1.handleMessage (CountDownTimer.java:127)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loop (Looper.java:236)
  at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run (MessageQueueThreadImpl.java:228)
  at java.lang.Thread.run (Thread.java:923)

I say supposedly because on all of my testing
devices (which are android 7+) this error
doesn't occur.
2024-02-08 20:58:08 +13:00
..
.settings Add a bunch of ide settings from trying to setup neovim 2022-08-08 15:14:21 +12:00
src Use foreground service for alarm completion 2024-02-08 20:58:08 +13:00
.classpath Add a bunch of ide settings from trying to setup neovim 2022-08-08 15:14:21 +12:00
.project Add a bunch of ide settings from trying to setup neovim 2022-08-08 15:14:21 +12:00
_BUCK First commit 2022-06-30 18:50:52 +12:00
build.gradle Add more information to rest timer notifications - 2.11 🚀 2024-02-07 17:41:38 +13:00
build_defs.bzl First commit 2022-06-30 18:50:52 +12:00
debug.keystore First commit 2022-06-30 18:50:52 +12:00
proguard-rules.pro Use hermes engine 2022-10-28 18:36:47 +13:00