Massive/android
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
app Use foreground service for alarm completion 2024-02-08 20:58:08 +13:00
fastlane Setup fastlane 2022-11-04 20:52:31 +13:00
gradle/wrapper Upgrade react-native to 0.72.1 2023-07-07 13:17:19 +12:00
.project Add a bunch of ide settings from trying to setup neovim 2022-08-08 15:14:21 +12:00
build.gradle Upgrade react-native to 0.72.1 2023-07-07 13:17:19 +12:00
Gemfile Setup fastlane 2022-11-04 20:52:31 +13:00
Gemfile.lock Update gemfile 2024-02-08 18:12:19 +13:00
gradle.properties Upgrade react-native to 0.72.1 2023-07-07 13:17:19 +12:00
gradlew Upgrade react-native to 0.72.1 2023-07-07 13:17:19 +12:00
gradlew.bat Upgrade react-native to 0.72.1 2023-07-07 13:17:19 +12:00
settings.gradle Upgrade react-native to 0.72.1 2023-07-07 13:17:19 +12:00