nativescript-directions
nativescript-directions copied to clipboard
Android: Google Maps open in my Nativescript App
Hi There
I have a problem. Android open the Native Goggle Maps App in my App. How can i fix this?. IOS works fine.
I am also facing the same issue. any updates on this??
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
Hi have you checked https://stackoverflow.com/questions/332872/encode-url-in-javascript to encode the variables?