After upgrading targetSdk from 33 to 34. App has began to crash. I checked logs and saw the error (below).
Expected behavior
When I start ranging beacons it should start ranging.
Actual behavior
When starting Beacon foreground service, app crashing. Log below
java.lang.RuntimeException: Unable to create service org.altbeacon.beacon.service.BeaconService: android.app.MissingForegroundServiceTypeException: Starting FGS without a type callerApp=ProcessRecord{a4d7f35 2231:com.example.myapp/u0a672} targetSDK=34
After upgrading targetSdk from 33 to 34. App has began to crash. I checked logs and saw the error (below).
Expected behavior
When I start ranging beacons it should start ranging.
Actual behavior
When starting Beacon foreground service, app crashing. Log below
Steps to reproduce this behavior
Mobile device model and OS version
Google Pixel 6 Pro (android 14)
Android Beacon Library version
2.19
Here's docs about this issue: https://developer.android.com/about/versions/14/changes/fgs-types-required