maplibre / maplibre-navigation-android

Maplibre Navigation SDK for Android
MIT License
86 stars 44 forks source link

Fixes for API 34 #90

Closed joshhood closed 10 months ago

joshhood commented 10 months ago

Currently there are two crashes occuring when attempting to use the MockNavigationActivity on Android API 34:

java.lang.SecurityException: com.mapbox.services.android.navigation.testapp: One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts

java.lang.SecurityException: Starting FGS with type location callerApp=ProcessRecord{a043266 10859:com.mapbox.services.android.navigation.testapp/u0a410} targetSDK=34 requires permissions: all of the permissions allOf=true [android.permission.FOREGROUND_SERVICE_LOCATION] any of the permissions allOf=false [android.permission.ACCESS_COARSE_LOCATION, android.permission.ACCESS_FINE_LOCATION] and the app must be in the eligible state/exemptions to access the foreground only permission

joshhood commented 10 months ago

Hi, sorry for slow reply, have added entry to CHANGELOG now

boldtrn commented 10 months ago

Thanks a lot for the PR!