nativescript-community / nativescript-community/ui-mapbox

Unable to inject telemetry service

Open
#113 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
38
Forks
26
PR merge metrics
No merged PRs in 30d

Description

I am currently getting this error when map instantiate in Android

telemtry TypeError: Cannot read properties of null (reading 'setUserTelemetryRequestState')

I don't require telemetry for this service and the map is working fine but for the sake of having a "clean" implementation I tried adding

<service android:name="com.mapbox.services.android.telemetry.service.TelemetryService" />

into App_Resources/Android/src/main/AndroidManifest.xml in the application block as mentioned in the read me though no luck.

If someone finds something wrong with my attempt or has more information on how to make sure that the telemetry service is properly injected let me know thanks.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with App_Resources/Android/src/main/AndroidManifest.xml and the README instructions for TelemetryService injection. Reproduce map instantiation on Android and trace why the telemetry service is null; done means the reported error is resolved or the correct way to disable telemetry is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, typescript
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.