flutter_mapbox_navigation icon indicating copy to clipboard operation
flutter_mapbox_navigation copied to clipboard

Full navigation crashes on android 14

Open reubendeekay opened this issue 1 year ago • 8 comments

I get this error on Android 14 when trying to do full Navigation. The embedded navigation still works well so its not an issue with setup. Unable to start activity ComponentInfo{com.daride.driver/com.eopeter.fluttermapboxnavigation.activity.NavigationActivity}: java.lang.SecurityException: com.daride.driver: One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts

Here is my stack trace I/Mapbox ( 8054): [nav-native]: No PersistentConfig found at /data/user/0/com.daride.driver/files/mbx_nav/tiles/navigation/config.json [ ] I/Mapbox ( 8054): [nav-native]: No PersistentConfig found at /data/user/0/com.daride.driver/files/mbx_nav/tiles/navigation/config.json [ +2 ms] I/Mapbox ( 8054): [nav-native]: Async version config for mapbox/driving-traffic resolved with version 2024_01_07-03_00_07 [{"map":{"tileset_version":"2024_01_07-03_00_07"}}] [ +1 ms] I/Mapbox ( 8054): [nav-native]: Async version config for mapbox/driving-traffic resolved with version 2024_01_07-03_00_07 [{"map":{"tileset_version":"2024_01_07-03_00_07"}}] [ +1 ms] W/Mapbox ( 8054): [nav-sdk]: [BillingController] [code: TokenValidationFailed, message: Token validation failed for: this-can-be-skip-since-we-set-it-later] [ +37 ms] W/Mapbox ( 8054): [config_service]: Unexpected HTTP response code is received: 401 [ +3 ms] I/TextToSpeech( 8054): Connected to TTS engine [ +7 ms] W/Mapbox ( 8054): [config_service]: Unexpected HTTP response code is received: 401 [ +2 ms] W/Mapbox ( 8054): [config_service]: Unexpected HTTP response code is received: 401 [ +1 ms] I/TextToSpeech( 8054): Setting up the connection to TTS engine... [ +80 ms] W/Mapbox ( 8054): [events_service]: Failed to flush 0 event(s): events dispatch disabled [ +1 ms] W/System ( 8054): A resource failed to call destroy. [ ] W/System ( 8054): A resource failed to call destroy. [ ] W/System ( 8054): A resource failed to call destroy. [ +26 ms] E/Mapbox ( 8054): [events_service]: Events sending aborted [ +1 ms] E/Mapbox ( 8054): [nav-sdk]: [MapboxMetricsReporter] Failed to send Turnstile event: [code: Unauthorized, message: Not Authorized] [ +108 ms] I/Process ( 8054): Sending signal. PID: 8054 SIG: 9 [ +178 ms] Service protocol connection closed. [ ] Lost connection to device. [ +1 ms] DevFS: Deleting filesystem on the device (file:///data/user/0/com.daride.driver/code_cache/driver_applicationCNXMXO/driver_application/) [ +253 ms] Ignored error while cleaning up DevFS: TimeoutException after 0:00:00.250000: Future not completed

reubendeekay avatar Jan 09 '24 09:01 reubendeekay

Also getting the same error. Please fix!

samargy avatar Jan 17 '24 06:01 samargy

You can fix the issue by setting the compileSDK to 33. However the package needs to be upgraded to support >=34

reubendeekay avatar Jan 17 '24 06:01 reubendeekay

Was the issue you were getting happening when the X button was clicked? Since my map was rendering however, crashed when the X button is clicked.

samargy avatar Jan 17 '24 06:01 samargy

It wasnt the same issue but downgrading fixed my issue. Android 14 has alot of changes, I would advice to stick to sdk 33 until the package is updated

reubendeekay avatar Jan 17 '24 06:01 reubendeekay

Thanks for the reply. change back to 33 works for me as well

DohanResponse24 avatar Jan 17 '24 08:01 DohanResponse24

Sticking to 33 didn't fix for me.

samargy avatar Jan 23 '24 02:01 samargy

Encountering a broader challenge during app publishing related to the proper usage demonstration of Foreground service permissions. The issue extends to the necessity of recording a video to showcase the correct implementation of these permissions. Unfortunately, on Android 14, recording such videos seems to be unattainable due to platform restrictions.

Any insights or workarounds for addressing this constraint on Android 14 would be greatly appreciated.

image

antonzk avatar Jan 23 '24 09:01 antonzk

Record it using the emulator or a screen capture tool out of Android studio

eopeter avatar Jan 23 '24 09:01 eopeter

Stale issue message

eopeter avatar Mar 24 '24 01:03 eopeter