-
Notifications
You must be signed in to change notification settings - Fork 123
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
Loading style failed. Missing public access token? #1
Comments
Hey thank you for pointing out the typo in the readme. That has been updated and published. Do you have the Also what are you using for the |
Hi! Yes, I have the This is my code:
Thank you for your attention. |
Hmm that looks correct and thank you for the details. I'm able to run the latest version of the library with very similar code (screenshots below). Have you tried running this on ios? There was a quirk with android due to react native that was resolve in this commit 4fceba3 (see here and here if you want details on the react native quirk for android). This sounds weird but you might try changing the orientation on your android simulator while it is running. If everything shows up and renders then it is definitely due to this issue with react native that I linked. Also I wonder if your mapbox access token has the right permissions or something is missing? |
Hi again! I only can testing in Android :( I can send you the project in a zip file if you have curiosity about this issue :) Thank you anyway, I don't want to disturb you anymore. If you have any other idea that is welcome. Best regards. |
@rapomon maybe it's the RN version. I have some problem (not that you mentioned) with an older version. |
Thank you for the tip, I'm using the latest versions, this is my package.json
I'll try a previous version, what module versions are you using? Thanks. |
I have been testing using RN |
One thing worth checking is logcat in android studio. I think that could provide some clues for what is going on. |
I think this is the problem, but I don't know how to solve it. I have the download token and public access token configured properly in the application, but the logs shows the access token is null
Am I missing something? |
Problem solved!!! In AndroidManifest.xml the Thank you for all! |
Awesome glad you got it figured out. I discovered a lifecycle issue with the android side of this wrapper and I'm working on fixing it. I'll publish a new version once I'm done. |
Thank you! Maybe specify in the readme where the meta-data should be added, for people who use react native without knowledge of android as me :) |
Yeah I'll update that before this next publish. |
…roid-sdk Feature/gciluffo/upgrade android sdk
I followed all instructions of the readme document.
It was neccesary to change the import of the example from:
import MapboxNavigation from 'react-native-mapbox-navigation';
To:
import MapboxNavigation from '@homee/react-native-mapbox-navigation';
After that, the app runs correctly without errors or warnings, but I only see an empty layout of the navigation:
The text was updated successfully, but these errors were encountered: