Detect if user is using webview for android/iOS or a regular browser

后端 未结 10 2188
迷失自我
迷失自我 2020-11-28 07:27

How to detect if the user is browsing the page using webview for android or iOS?

There are various soluti

10条回答
  •  孤城傲影
    2020-11-28 07:53

    A simple solution that is found for this issue is passing a parameter in url when hitting webview and check if the parameter exists and is it from android or IOS. It works only when you have access to App source code. otherwise you can check for user agent of request.

提交回复
热议问题