This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
Prompt for access token in iosapp - #4728
Merged
Merged
Conversation
Contributor
|
As you noted, users will expect a If we make this public now, let’s add a warning to the inline docs stating that it does not affect cached resources. |
Contributor
Author
|
I’d rather that iosapp rely solely on public API, and it does fetch the current style when the original requests failed due to network conditions. So let’s document the caveats. |
This was referenced Apr 18, 2016
If no access token is found in user defaults at launch, iosapp prompts the user for an access token. Renamed the user defaults key for the access token to conform to Cocoa naming conventions. Fixes #4696.
1ec5
force-pushed
the
1ec5-iosapp-access-token-4696
branch
from
April 18, 2016 21:57
44027e0 to
96e0857
Compare
1ec5
added a commit
that referenced
this pull request
Apr 19, 2016
Prompt for an access token before starting benchmarking. /ref #4728
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If no access token is found in user defaults at launch, iosapp prompts the user for an access token. Renamed the user defaults key for the access token to conform to Cocoa naming conventions. The
MAPBOX_ACCESS_TOKENenvironment variable is still honored.Added an action to MGLMapView that reloads the current style. Note that it doesn’t clear the cache; it’s pretty much only useful for ensuring that a change in access token is reflected on the map or for forcing the map view to retry loading tiles independently of the exponential back-off strategy.
Fixes #3102 and fixes #4696.
/cc @friedbunny @kkaefer