Open native google maps in IOS mobile

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:http://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:http://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("http://maps.apple.com/?q="+lat,long, '_system');



Solution