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.

Android Telemetry planning #2421

Closed
Closed

Description

@ljbade

For the v0.2.0 release we plan to implement metrics.

This ticket is for planning what tasks we need to complete so we can break it out into separate issues.

Tasks:

  • create an EventManager that processes and uploads events on a background thread - Create Android EventManager #2422
  • test low battery location strategies on Android
  • copy SSL certs to common folder then use build system to copy into ios and android

Activity

  1. added
    Android
    telemetry
    on Sep 25, 2015
  2. added this to the milestone on Sep 25, 2015
  3. removed this from the milestone on Sep 29, 2015
  4. added this to the android-v2.2.0 milestone on Oct 26, 2015
  5. self-assigned this
    on Nov 12, 2015
  6. bleege commented on Nov 12, 2015

    @bleege
    Contributor

    The data model and lifecycle model to mirror from iOS can be found in MGLMapboxEvents.m.

  7. changed the title [-]Android metrics planning[/-] [+]Android Telemetry planning[/+] on Nov 12, 2015
  8. bleege commented on Nov 12, 2015

    @bleege
    Contributor

    Telemetry is going to need #2954 to be implemented first.

  9. removed this from the android-v2.3.0 milestone on Dec 4, 2015
  10. 107 remaining items

  11. added 7 commits that reference this issue on Feb 11, 2016
  12. bleege commented on Feb 11, 2016

    @bleege
    Contributor

    Rebased and merged into master so that internal testing can begin.

    In order for Android Telemetry Iteration 1 to be considered "complete" the following tickets also must be completed:

    /cc @mapbox/telemetry

  13. added a commit that references this issue on Feb 12, 2016
  14. afathman commented on Mar 27, 2016

    @afathman

    My opinion on Telemetry: there should be an easy opt-out procedure, whether it be not including the service in the manifest or by using a MapboxMapOptions flag.

    For me, using the Telemetry service in my manifest causes a crash in my application, and I'd also like to not send user location data as I'm just displaying a Map, not displaying the user's location.

  15. bleege commented on Mar 28, 2016

    @bleege
    Contributor

    Thanks for your feedback @afathman. We always love to hear from the community about Mapbox projects.

    My opinion on Telemetry: there should be an easy opt-out procedure

    We agree! That's why we built the Consumer Opt Out Control directly into the MapView UI so that all end users can control whether or not they want to participate.

    For me, using the Telemetry service in my manifest causes a crash in my application

    Can you tell us which version of the SDK you're using? Is it the latest Release Candidate from Friday night?

    I'd also like to not send user location data as I'm just displaying a Map, not displaying the user's location.

    The Telemetry system works by listening for Location updates from the app and operating system. The only time that User Location data will be generated by Mapbox tools is when the User Location is enabled using MapboxMap.setMyLocationEnabled(true).

  16. afathman commented on Mar 28, 2016

    @afathman

    We agree! That's why we built the Consumer Opt Out Control directly into the MapView UI so that all end users can control whether or not they want to participate.

    Was hoping for a developer opt out control, it doesn't seem very friendly to crash an app when it doesn't list your Telemetry service in the manifest.

    Can you tell us which version of the SDK you're using? Is it the latest Release Candidate from Friday night?

    I'm using 4.0.0-rc1 in my build.

    The Telemetry system works by listening for Location updates from the app and operating system. The only time that User Location data will be generated by Mapbox tools is when the User Location is enabled using MapboxMap.setMyLocationEnabled(true).

    That makes sense... though I get logcat error messages from MapBox complaining that I didn't yet give it location permissions, even when I use setMyLocationEnabled(false);

  17. bleege commented on Mar 28, 2016

    @bleege
    Contributor

    I'm using 4.0.0-rc1 in my build.

    Thanks for confirming. Can you provide a stack trace or more details about what's crashing?

    though I get logcat error messages from MapBox complaining that I didn't yet give it location permissions, even when I use setMyLocationEnabled(false);

    Yep, the Mapbox Android SDK uses the open source LOST framework which uses the stock AOSP Location API for Location data generation. This means that the usual Android Location permissions (ACCESS_COARSE_LOCATION and ACCESS_FINE_LOCATION) are required in the app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Androidtelemetry

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions