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.

[ios] In-app changes to MGLMapboxMetricsEnabled should take effect immediately #3336

Closed

Description

@friedbunny

In implementing an in-app telemetry on/off switch, we found that changing the MGLMapboxMetricsEnabled bool in NSUserDefaults will not take immediate effect because the telemetry manager is not actively monitoring that key for changes.

We should implement KVO/etc for this key and trigger +[MGLMapboxEvents validate] when it changes.

/cc @1ec5 @incanus

Activity

  1. added
    iOS
    telemetry
    on Dec 17, 2015
  2. added this to the ios-v3.1.0 milestone on Dec 17, 2015
  3. changed the title [-][ios] In-app changes to MGLMetricsEnabled should take effect immediately[/-] [+][ios] In-app changes to MGLMapboxMetricsEnabled should take effect immediately[/+] on Dec 17, 2015
  4. friedbunny commented on Jan 6, 2016

    @friedbunny
    ContributorAuthor

    We actually do already watch for NSUserDefaults changes and then call +[MGLMapboxEvents validate]. Verified to be working in iosapp.

  5. removed this from the ios-v3.1.0 milestone on Jan 9, 2016
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

    bugiOStelemetry

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions