Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

MGLAccountManager should get its data from Info.plist entries, not class setter method calls #1535

Closed

Description

@1ec5

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:].

/cc @incanus @bleege

Activity

  1. added
    iOS
    telemetry
    on May 12, 2015
  2. added this to the iOS Beta 2 milestone on May 12, 2015
  3. added a commit that references this issue on May 13, 2015
    2529baa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    iOSrefactortelemetry

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions