Home  >  Q&A  >  body text

webviewjavascriptbridge - html5页面嵌入安卓,ios的webview中,如何用js控制,只能在单个app中打开

html5页面嵌入公司开发的安卓,ios的webview中,如何用js控制只能在公司的app中打开,其他例如浏览器中,手机模拟器中都无法打开,像微信网页提示在微信客户端打开的提示。有好的方法吗?求指教

大家讲道理大家讲道理2719 days ago532

reply all(3)I'll reply

  • 迷茫

    迷茫2017-04-17 13:55:42

    You can add a piece of js to the header of your page, and then pass a value to the page when the webview opens the page. When the page is loaded and executed such as onload, check to see if it is your own app

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 13:55:42

    Match user agent string or private API?

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-17 13:55:42

    Set a special agent header

    reply
    0
  • Cancelreply