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

后端 未结 10 2187
迷失自我
迷失自我 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 08:06

    I came to decision, that instead of detection, more efficient solution simply specify platform in AppConfig.

    const appConfig = {
       appID: 'com.example.AppName.Web'
       //or
       //appID: 'com.example.AppName.MobileIOS'
       //or
       //appID: 'com.example.AppName.MobileAndroid'
    }
    

提交回复
热议问题