在webview嵌入h5服务,h5无法无法使用使用三方地图服务。提示报错内容如下:
A parser-blocking, cross site (i.e. different eTLD+1) script, xxx, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message.
报错信息非跨域错误,A parser-blocking, cross site (i.e. different eTLD+1) script……此信息为页面渲染完成后使用了document.write(),可以将模糊定位改成精确定位,atManager.requestPermissionsFromUser(context, [“ohos.permission.LOCATION”])更改后页面正常。