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 Aug 8, 2023. It is now read-only.
MGLAccountManager currently forces the developer to send it -setMapboxMetricsEnabledSettingShownInApp: (optionally) and -setAccessToken: sometime at startup, in that order, before the first MGLMapView is initialized. The exact place where these setters must be called depends on how and where they use MGLMapView – whether programmatically or in a storyboard, whether in the initial view controller or some later view controller, etc.
iOS has an affordance for settings that need to be set right at launch: the Info.plist that comes with every project. MGLAccountManager should look there for the access token and in-app opt-out flag. For beta 2, we should deprecate the class setters and add code to +[MGLAccountManager initialize] (which is called as soon as MapboxGL.a loads) that looks inside the Info.plist using -[NSBundle objectForInfoDictionaryKey:].
That way there’s no ambiguity about when you should call things like `+[MGLAccountManager setMapboxMetricsEnabledSettingShownInApp:]`. In fact, that method is now deprecated because it’s so easy to call in the wrong place.
Fixes#1535.
MGLAccountManager
currently forces the developer to send it-setMapboxMetricsEnabledSettingShownInApp:
(optionally) and-setAccessToken:
sometime at startup, in that order, before the firstMGLMapView
is initialized. The exact place where these setters must be called depends on how and where they useMGLMapView
– whether programmatically or in a storyboard, whether in the initial view controller or some later view controller, etc.iOS has an affordance for settings that need to be set right at launch: the Info.plist that comes with every project.
MGLAccountManager
should look there for the access token and in-app opt-out flag. For beta 2, we should deprecate the class setters and add code to+[MGLAccountManager initialize]
(which is called as soon as MapboxGL.a loads) that looks inside the Info.plist using-[NSBundle objectForInfoDictionaryKey:]
./cc @incanus @bleege
The text was updated successfully, but these errors were encountered: