mapbox / mapbox-unity-sdk

Mapbox Unity SDK - https://www.mapbox.com/unity/
Other
725 stars 210 forks source link

Mapbox Access token not loading on Samsung devices #1880

Closed tomCarnevale closed 2 years ago

tomCarnevale commented 2 years ago

During testing in our app, we are finding that samsung devices will not load mapbox. Specifically, we are finding that it is failing at MapboxAccess.LoadAccessToken() when we call Resources.Load. configurationTextAsset is null after loading, causing the error message "No configuration file found! Configure your access token from the Mapbox > Setup menu.". Of course, we have done this and of course the error message is generic. We can confirm the path is correctly being set and that the config file exists in our project. App works on android and ios devices.

Our workaround will likely be hard coding the token, but wanted to draw attention to this bizarre bug

Devices confirmed failing:

Mapbox SDK version 2.0.1

Edit: I was tricked. Its failing on pixel devices but only on Android 12. Will investigate.

tomCarnevale commented 2 years ago

Unrelated issue with Android 12.