我正在开发WebApplication(使用Angular)。在该应用程序中,有一个链接应该打开导航器。 在桌面浏览器上,它会打开googlemaps,在Android上,它应该会打开Google地图应用。
这是我的代码:
var intent = 'intent://maps.google.it/maps?es_sm=91&biw=120&bih=213&um=1&ie=UTF-8&fb=1&gl=it&geocode=KQv869mUnXhHMWOijqSFOTSc&daddr={0}&gmm=CgIgAQ%3D%3D&entry=s#Intent;scheme=http;package=com.google.android.apps.maps;end'.format(this.plussizeAddress(address));
var win = window.open(intent, '_blank');
win.focus();
它适用于chrome,但使用Android WebView我收到错误 net :: ERR_UNKNOWN_URL_SCHEME
即使在WebView上也有正确的打开方法吗?
非常感谢