mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-05-08 06:34:20 -04:00
- replaces `Service.startForeground` with `ServiceCompat.startForeground` with support for different API levels; - adds try-catch block to handle exceptions and report errors if startForeground fails. references: - https://issuetracker.google.com/issues/307329994 - https://developer.android.com/develop/background-work/services/foreground-services#start