Set user agent with WebView with react-native

后端 未结 9 1499
闹比i
闹比i 2021-02-19 13:26

I want to modify the user agent string in a WebView so that on the server side I can detect that the request has come from my react-native app. I want to do this using the sourc

9条回答
  •  一个人的身影
    2021-02-19 14:03

    just add this to user agent you can update the versions in future, I used is as google login was giving me issue

    userAgent="Mozilla/5.0 (Linux; Android 10; Android SDK built for x86 Build/LMY48X) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/81.0.4044.117 Mobile Safari/608.2.11"

提交回复
热议问题