From e4d5cd35a2371da997ec28270957aa45be77b631 Mon Sep 17 00:00:00 2001 From: yanyilin Date: Wed, 15 Mar 2023 16:20:56 +0800 Subject: [PATCH] update docs/tutorial/app-useragent.md for x5 on android --- docs/tutorial/app-useragent.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/tutorial/app-useragent.md b/docs/tutorial/app-useragent.md index 6ca834265..faa8ea199 100644 --- a/docs/tutorial/app-useragent.md +++ b/docs/tutorial/app-useragent.md @@ -8,6 +8,12 @@ API包括[uni.request](https://uniapp.dcloud.net.cn/api/request/request.html#req ``` Mozilla/5.0 (Linux; Android 10; AKA-AL10 Build/HONORAKA-AL10; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/88.0.4324.93 Mobile Safari/537.36 uni-app Html5Plus/1.0 (Immersed/34.5) ``` + +使用[Android X5 Webview(腾讯TBS)](https://uniapp.dcloud.net.cn/tutorial/app-android-x5.html),则在X5的User Agent后添加Html5Plus/1.0、uni-app字段: +``` +Mozilla/5.0 (Linux; Android 10; AKA-AL10 Build/HONORAKA-AL10; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/77.0.3865.120 MQQBrowser/6.2 TBS/045738 uni-app Html5Plus/1.0 (Immersed/34.5) +``` + - iOS平台,在iPhone 12手机上默认值为: ``` Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Html5Plus/1.0 (Immersed/20) uni-app -- GitLab