Open native google maps in IOS mobile

Hi, I am opening Google maps in Android and ios : 

For android its working fine but in ios it is not opened.

i am using the below URL in external url.

For Android:

"external:https://maps.google.com/maps?daddr="+distanceList.Current.Latitude+","+distanceList.Current.Longtitude + "&ll="

For IOS:

"external:maps://maps.google.com/maps?daddr="+distanceList.Current.Latitude+","+distanceList.Current.Longtitude + "&ll="

Hi Mohd,

Googling a bit I found this article that may help you.

Solution

mohd hasib wrote:

Hi, I am opening Google maps in Android and ios : 

For android its working fine but in ios it is not opened.

i am using the below URL in external url.

For Android:

"external:https://maps.google.com/maps?daddr="+distanceList.Current.Latitude+","+distanceList.Current.Longtitude + "&ll="

For IOS:

"external:maps://maps.google.com/maps?daddr="+distanceList.Current.Latitude+","+distanceList.Current.Longtitude + "&ll="


I am using javascript code when the current os is IOS :

window.open("https://maps.apple.com/?q="+lat,long, '_system');



Solution

Mohammad Hasib wrote:

mohd hasib wrote:

Hi, I am opening Google maps in Android and ios : 

For android its working fine but in ios it is not opened.

i am using the below URL in external url.

For Android:

"external:https://maps.google.com/maps?daddr="+distanceList.Current.Latitude+","+distanceList.Current.Longtitude + "&ll="

For IOS:

"external:maps://maps.google.com/maps?daddr="+distanceList.Current.Latitude+","+distanceList.Current.Longtitude + "&ll="


I am using javascript code when the current os is IOS :

window.open("https://maps.apple.com/?q="+lat,long, '_system');




Hi,

The Javascript solution didn't work for me. 

Maybe this is a solution for a web application and I tried it from a mobile  application. 

For your benefit and others I did it by constructing a url based on a IOS scheme I found in a google documentation site. Then I used the RedirectToURL object.

https://developers.google.com/maps/documentation/urls/ios-urlscheme

Hope it helps

Best regards,


Domingo