You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.
As said on every doc about installation, we need to set MAPBOX_ACCESS_TOKEN on our build.gradle file, loading it from properties, ok ... but I need to change the token for a specific customer token, after the login process, is it possible?
While writing this I found a reference to setAccessToken, maybe is the right way? Is there any examples to use it with Kotlin on V10?
Thanks!
The text was updated successfully, but these errors were encountered:
taq
changed the title
Change MAPBOX_ACCESS_TOKEN dinamically
Change MAPBOX_ACCESS_TOKEN on runtime
Nov 4, 2021
// Set the application-scoped ResourceOptionsManager with customised token and tile store usage mode// so that all MapViews created with default config will apply these settings.ResourceOptionsManager.getDefault(this, getString(R.string.mapbox_access_token)).update {
tileStoreUsageMode(TileStoreUsageMode.READ_ONLY)
}
I just was thinking that setDefault would be a better name (write to the defaults), but anyway, this way, as stated all resources (maps, routes) after that will use that specific token, right? Even if I use only:
Hi!
As said on every doc about installation, we need to set MAPBOX_ACCESS_TOKEN on our build.gradle file, loading it from properties, ok ... but I need to change the token for a specific customer token, after the login process, is it possible?
While writing this I found a reference to setAccessToken, maybe is the right way? Is there any examples to use it with Kotlin on V10?
Thanks!
The text was updated successfully, but these errors were encountered: