This is a migrated thread and some comments may be shown as answers.

How can I launch the native maps application

4 Answers 141 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 28 Feb 2013, 07:22 PM
I have an application that contains locations of various gas stations and I would like to give the user the ability to open the native maps application on their device to view this location (and then navigate to it if they desire).  Is there a way to do this with Kendo Ui mobile?  I know that typically you just need a link to a particular url to do this from a webpage but it gets opened in a child view in my Kendo app (note I am referring to a hybrid app built with icenium).


I have tried both of the following:
<a href="http://maps.google.com/maps?q=dallas">map link</a>
<a data-rel="external" href="http://maps.google.com/maps?q=dallas">map link</a>

Neither will launch the Google maps application on an android device (tested with Nexus 4 running android 4.2.2)

4 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 04 Mar 2013, 08:46 AM
Hi David,

I am not sure if I understand you correctly. Does the approach you try (having a link to the google maps website) open the app in a regular html page without Kendo UI Mobile on it? 

Greetings,
Petyo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
David
Top achievements
Rank 1
answered on 04 Mar 2013, 11:18 AM
Currently the Google maps webpage page opens inside what I think is the child browser plugin.  What I would like to have happen is have the native Google maps application on the phone launch (apple maps if on an iOS device).  The native app has some functionality that the webpage does not (particularly turn by turn navigation).
0
Accepted
Petyo
Telerik team
answered on 06 Mar 2013, 08:38 AM
Hello David,

Sorry for the additional roundtrip required. From your answer, I failed to understand if this behavior is caused by the presence of Kendo UI Mobile framework? Does the approach you try (having a link to the google maps website) open the app in a regular html page without Kendo UI Mobile on it? 

Regards,
Petyo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
David
Top achievements
Rank 1
answered on 06 Mar 2013, 02:52 PM
No Worries Petyo,
  I figured this would be a common enough circumstance that I didn't elaborate in as much detail as I should have.  It appears that this is a cordova/phonegap or icenium issue.

  I made a test application on jsbin if you view that on your phone (may only work on android devices) the first link will launch the native maps application (or at least prompt you to choose which app handles the link).

  I made a test icenium app with the same code, and it launches a browser within the app (I believe the child browser plugin is what is used) pointed at the link rather than opening the native application.  I will post this question on the icenium forums.  Although if you happen to know of the fix off the top of your head that would be nice too :).
Tags
General Discussions
Asked by
David
Top achievements
Rank 1
Answers by
Petyo
Telerik team
David
Top achievements
Rank 1
Share this question
or