mobile html5 launch phone's native navigation app

前端 未结 5 1074
灰色年华
灰色年华 2021-02-01 07:30

I\'m developing a phonegap/cordova app. Is there a way to open a phone\'s native navigation app within the browser view? Or is there a best practice on opening native map applic

5条回答
  •  遥遥无期
    2021-02-01 08:04

    For the record, if someone find this thread by looking on Google like I did, it worked for me directly, working with Ionic framework, by doing two things :

    • In the myapp.config(...) of your app add

      $compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|geo):/);
      

      (dont forget to add $compileProvider as a dependency)

    • In the config.xml, add the line

      
      

    That's all.

提交回复
热议问题