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

Android: Google Maps open in my Nativescript App #15

Open
lordrepha1980 opened this issue Nov 29, 2017 · 3 comments
Open

Android: Google Maps open in my Nativescript App #15

lordrepha1980 opened this issue Nov 29, 2017 · 3 comments

Comments

@lordrepha1980
Copy link

Hi There

I have a problem. Android open the Native Goggle Maps App in my App. How can i fix this?. IOS works fine.

@komal2694
Copy link

I am also facing the same issue. any updates on this??

@lordrepha1980
Copy link
Author

I have a solution. I used Nativescript openUrl from utils and create a googlemaps schema URL like this:
utilsModule.openUrl("https://www.google.com/maps/dir/?api=1&destination=" + address)

this works fine with Android but in IOS this doesn't work.

the variable 'address' must be urlencoded

https://developers.google.com/maps/documentation/urls/guide

@elalienx
Copy link

Hi have you checked https://stackoverflow.com/questions/332872/encode-url-in-javascript to encode the variables?

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