Android - launch google map via web url

后端 未结 4 492
暖寄归人
暖寄归人 2020-12-04 14:35

On the iPhone, a maps.google.com URL is intercepted and loaded by the native google maps application. I would like do the same on Android, but Google Maps is being loaded in

4条回答
  •  无人及你
    2020-12-04 15:26

    I really suffered a lot from this but finally got answer .
    Don't use href , it will not work .

    For Navigation - window.open("google.navigation:q=23.3728831,85.3372199&mode=d" , '_system');

    For Search - window.open("geo:0,0?q=pizza" , '_system');

    Read Here - https://developers.google.com/maps/documentation/android/intents

提交回复
热议问题