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.

MapboxEventManager is using ApiAccess class #4077

Closed

Description

@tobrun

I noticed that ApiAccess class is being used by the MapboxEventManager.

This means we are forcing our end users to use one of the following:

  • Configuration of their access token in AndroidManifest.xml

    <meta-data
       android:name="com.mapbox.AccessToken"
       android:value="" />
    
  • Configuration of their access token as string resource with key:

  R.string.mapbox_access_token

@bleege
you always indicated to me that we should not enforce this.
If this requirement has changed we should update the rest of classes to reflect this.

Activity

  1. added
    Android
    on Feb 23, 2016
  2. added this to the android-v4.0.0 milestone on Feb 23, 2016
  3. tobrun commented on Feb 23, 2016

    @tobrun
    MemberAuthor

    Leaving a note here, that the previous requirement of having the ApiAccess class in the SDK itself could be removed with introduction of MapboxMapSettings in #4076 . This will cover 99% of our use-cases. (need to double check during implementation of that feature).

  4. bleege commented on Feb 23, 2016

    @bleege
    Contributor

    Yep this needs to be removed. Good catch.

  5. added
    telemetry
    on Feb 23, 2016
  6. self-assigned this
    on Feb 25, 2016
  7. added a commit that references this issue on Feb 25, 2016
  8. added a commit that references this issue on Feb 25, 2016
  9. bleege commented on Feb 25, 2016

    @bleege
    Contributor

    To solve this issue, I created configureAndStartMapboxEventManager() startup method that needs to be called first. It's probably not ideal in the long term, but it comes with the big benefit of removing the need for every call to getMapboxEventsManager() to have pass in the Context for every time its used. This is extra helpful in classes that don't have access to Context and would have to be reconfigured to provide it.

    The ability to configure the MapboxEventsManager to still use Staging remains, by setting them in AppManifest.

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

Metadata

Metadata

Assignees

Labels

Androidbugtelemetry

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions