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

Tracking information is not displayed #61

Open
altshuler opened this issue Nov 23, 2019 · 5 comments
Open

Tracking information is not displayed #61

altshuler opened this issue Nov 23, 2019 · 5 comments

Comments

@altshuler
Copy link

Hello.
I'm downloaded and installed the application and tried it on 2 different devices -
Galaxy S9+ and Galaxy S6. On both devices the map and tracking information
is not displayed. First times after installation application is crashing.
Here attached link to the log file:
https://drive.google.com/open?id=1Vrv1iQGsjBQTB-uWQl9ddoXtyipWcu4a

@dmitry-trefilov
Copy link

Note your http request is 401 that means "Not autorized".
Indeed, mapbox api access token from this repo is invalid, If you try to load map using it, you will get nothing: http://jsfiddle.net/k7Lnh9t6/

You should register own account on mapbox.com and get your public accees token. Or take it from anywhere.

I had the same issue. But now with my own access token I have got this stupid error (app running through Android Studio):

I/System.out: [CDS][DNS] getAllByNameImpl netId = 0
D/libc-netbsd: [getaddrinfo]: mtk hostname=api.mapbox.com; servname=(null); netid=0; mark=0
    getaddrinfo( app_uid:10171
D/libc-netbsd: getaddrinfo() uid prop:
    getaddrinfo() getuid():10171
    [getaddrinfo]: mtk ai_addrlen=0; ai_canonname=(null); ai_flags=4; ai_family=0
D/libc-netbsd: [getaddrinfo]: mtk hostname=api.mapbox.com; servname=(null); netid=0; mark=0
D/libc-netbsd: getaddrinfo( app_uid:10171
    getaddrinfo() uid prop:
    getaddrinfo() getuid():10171
    [getaddrinfo]: mtk ai_addrlen=0; ai_canonname=(null); ai_flags=1024; ai_family=0
D/libc-netbsd: getaddrinfo: api.mapbox.com get result from proxy gai_error = 0
I/System.out: [CDS]rx timeout:10000
E/NetworkUtilities: [MTK_net]ss.ss_family:10
I/System.out: [socket][5] connection ********;LocalPort=59811(10000)
E/NetworkUtilities: [MTK_net]ss.ss_family:2
I/System.out: [CDS]connect[api.mapbox.com/13.33.244.9:443] tm:10
D/Posix: [Posix_connect Debug]Process com.example.lezh1k.sensordatacollector :443 
E/NetworkUtilities: [MTK_net]ss.ss_family:2
E/NetworkUtilities: [MTK_net]ss.ss_family:2
I/System.out: [socket][6:59811] exception
E/NetworkUtilities: [MTK_net]ss.ss_family:2
I/System.out: close [socket][********]
I/Mbgl-HttpRequest: Request failed due to a connection error: Failed to connect to api.mapbox.com/13.33.244.9:443 
E/Mbgl: {ordatacollector}[Setup]: loading style failed: Failed to connect to api.mapbox.com/13.33.244.9:443

But api.mapbox.com is 13.33.244.9! I don't know how and where fix this typo.

Screenshot_2019-12-08-21-50-04-793_com example lezh1k sensordatacollector - Copy

@altshuler
Copy link
Author

Hi,
my problem is solved.
Just changed the token to valid one and changed
compileSdkVersion to 28 in build.gradle file.

@dmitry-trefilov
Copy link

When I connected to internet via mobile operator (rather than through wi-fi), then app become to working. You can close this issue.

@FX-HAO
Copy link

FX-HAO commented Apr 24, 2020

I know this's irrelative, but could someone tell me how to show device location and get to my current location on Mapbox?

@Lezh1k
Copy link
Collaborator

Lezh1k commented Apr 25, 2020

Isn't it implemented in demo application, @FX-HAO ?
I don't remember all details, so, try this : m_map.setMyLocationEnabled(true);
Hope it will help

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

4 participants