Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make sure you add the Telemetry service to your androidManifest.xml #90

Closed
shyandsy opened this issue Mar 2, 2017 · 8 comments
Closed

Comments

@shyandsy
Copy link

shyandsy commented Mar 2, 2017

########################################################

  1. I created a test project base on this project

https://github.com/NativeScript/template-hello-world-ts
by
tns create my-app-name --template tns-template-hello-world-ts

  1. add the service to AndroidManifest.xml
  1. then use the following code

<map:Mapbox
accessToken="your_token"
mapStyle="light"
latitude="52.3702160"
longitude="4.8951680"
zoomLevel="3"
showUserLocation="true"
mapReady="onMapReady">
</map:Mapbox>

  1. I get the error message said "make sure you add the Telemetry service to your androidManifest.xml"

image

the test program is in the attachment, please change to mapbox API token manually.
image

=========================

after I add to the AndroidManifest.xml, I got new exception
image

@Equisetum
Copy link
Contributor

See this link: #78 (comment)

@shyandsy
Copy link
Author

shyandsy commented Mar 2, 2017

@Equisetum
i change the service to

in both androidManifest.xml
but still not working
image

try to rebuild

tns build android

still not working

try to remove platform and readd platform

tns platform remove android
tns platform add android

still not working

demo also not working
EddyVerbruggen/nativescript-mapbox-demo#11

@EddyVerbruggen
Copy link
Collaborator

Working on something similar in #80

@shyandsy
Copy link
Author

shyandsy commented Mar 3, 2017

@EddyVerbruggen
hi i am using Typescript and i saw that #80 using something from nativescript angular

@shyandsy
Copy link
Author

shyandsy commented Mar 4, 2017

@EddyVerbruggen still not working

image

could u check the new version of demo I provided??

mapbox-error-demo-v2.zip

@shyandsy
Copy link
Author

shyandsy commented Mar 5, 2017

got error message "program failed to link at com.mapbox.mapboxsdk.maps.MativeMapView.nativeRender"
image

code
mapbox-error-demo-v3.zip

@EddyVerbruggen
Copy link
Collaborator

That first issue was probably solved, the second may be down to the emulator you use. Did you try this on an Android 4.4 or higher device?

@shyandsy
Copy link
Author

shyandsy commented Mar 9, 2017

@EddyVerbruggen
I tried yesterday

the mapbox-error-demo-v3.zip works correct on real phone, but doesnt work on simulator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants