webview实现H5混合开发
来源:12-10 基于自定义WebView实现H5混合开发-3【H5混合实战】
慕粉4252596
2019-07-26
webview打开localNavList中url显示异常
有时候短暂显示,然后出现网页无法打开,有时候直接显示网页无法打开。日志信息如下:
Performing hot reload...
Syncing files to device MI NOTE LTE...
Reloaded 5 of 590 libraries in 1,787ms.
D/EgretLoader(26560): EgretLoader(Context context)
D/EgretLoader(26560): The context is not activity
W/cr_BindingManager(26560): Cannot call determinedVisibility() - never saw a connection for the pid: 26560
I/chromium(26560): [INFO:CONSOLE(1)] "The key "viewport-fit" is not recognized and ignored.", source: https://m.ctrip.com/html5/ticket/ (1)
W/WebKit (26560): A Parser-blocking, cross site (i.e. different eTLD+1) script, https://ae.bdstatic.com/xz/msite/static/sdk/main.833c272c.js, is invoked via document.write. This 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.See https://www.chromestatus.com/feature/5718547946799104 for more details.
W/WebKit (26560): A Parser-blocking, cross site (i.e. different eTLD+1) script, https://ae.bdstatic.com/xz/msite/static/sdk/main.833c272c.js, is invoked via document.write. This 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.See https://www.chromestatus.com/feature/5718547946799104 for more details.
I/chromium(26560): [INFO:CONSOLE(1)] "A Parser-blocking, cross site (i.e. different eTLD+1) script, https://ae.bdstatic.com/xz/msite/static/sdk/main.833c272c.js, is invoked via document.write. This 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.See https://www.chromestatus.com/feature/5718547946799104 for more details.", source: https://msite.baidu.com/sdk/c.js?appid=1550956161944110 (1)
I/chromium(26560): [INFO:CONSOLE(1)] "A Parser-blocking, cross site (i.e. different eTLD+1) script, https://ae.bdstatic.com/xz/msite/static/sdk/main.833c272c.js, is invoked via document.write. This 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.See https://www.chromestatus.com/feature/5718547946799104 for more details.", source: https://msite.baidu.com/sdk/c.js?appid=1550956161944110 (1)
I/chromium(26560): [INFO:CONSOLE(1)] "Uncaught Error: Did not match any route with pathname:/html5/ticket/", source: https://webresource.c-ctrip.com/ares2/ttd/ticketh5-ares-cdn/1.1.17/default/js/vendor-1149a8.js (1)
W/chromium(26560): [WARNING:mediasession.cc(353)] Duplicate id found. Reassigning from 103 to 127
W/chromium(26560): [WARNING:stunport.cc(385)] Jingle:Port[0x93254800:data:1:0:local:Net[any:0:0:0:x:x:x:x:x/0:Unknown]]: StunPort: stun host lookup received error 0
W/chromium(26560): [WARNING:p2ptransportchannel.cc(514)] Jingle:Port[0x93ee9400:data:1:0:local:Net[any:0.0.0.x/0:Unknown]]: SetOption(5, 0) failed: 0
W/chromium(26560): [WARNING:p2ptransportchannel.cc(514)] Jingle:Port[0x93ee9200:data:1:0:local:Net[any:0:0:0:x:x:x:x:x/0:Unknown]]: SetOption(5, 0) failed: 0
W/cr_BindingManager(26560): Cannot call determinedVisibility() - never saw a connection for the pid: 26560
W/cr_BindingManager(26560): Cannot call determinedVisibility() - never saw a connection for the pid: 26560
不知道是怎么回事
1回答
-
CrazyCodeBoy
2019-07-26
携程H5的问题发生了重定向,引导用户下载携程APP,参考课程最终源码修改下 [fix] 防止携程H5页面重定向到打开携程APP https://git.imooc.com/coding-321/flutter_trip/commit/22db401474cff0f949a69709a90ef246cc6dd8dc
00
相似问题