Reputation: 1
I am developing mobile application using phonegap. In my application, I have one button, which is "view location". When the user click on that button, device maps should be open and after the maps opened, and user click back, it should back to my application. How to do that?
Upvotes: 0
Views: 269
Reputation: 8390
Looking at the Android intents list it should be possible using the q
parameter within the geo:
URI space.
Try this for Android:
<a href="geo:0,0?q=Bacau">Test</a>
or
<a href="geo:38.897096,-77.036545">open map</a>
iOS:
<a href="maps:q=someaddress" target="_blank" />
Source 1 - Credit to Dpa99c, Source 2 - Credit to Simon MacDonald
At this time all of this functionality is not unified under a single API. You will have to deal with each platform separately.
Upvotes: 2