-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Client hints for WebView-based apps #280
Comments
Can you clarify what you mean by web apps? Do you mean native apps with a webview component? |
Yes that is what I mean. The user agent currently has 'wv' in it to indicate. |
Thanks, changing the title accordingly. This seems useful to consider. |
Note that the Chromium blog stated that "have no plans to change the User-Agent string on Android WebView or Chrome for iOS at this time, but will make public updates if and when that changes." So, by default, apps using the default Chrome-based Android webview ("Android System WebView") will presumably continue to behave as before—perhaps @miketaylr can confirm. |
Correct, this is not an announcement that anything is changing from what is previously announced. To be clear, I'm saying it may be useful to consider a specific type of client hint to a webview. |
Understood, thanks. |
I wanted to check in on this with the user agent reduction coming for mobile devices in a few months. Will the user agent reduction remove wv? Or will it still be there to fall back on if user agent hints doesn't add a way to support it? Thanks |
Why couldn't the browser just be listed as "Chrome WV" instead of "Chrome"? |
The upcoming changes won't affect webview. Right now webview doesn't support client hints, which I consider a blocker for any UA reduction effort. But that will soon change (see https://groups.google.com/a/chromium.org/g/blink-dev/c/N_Y40YIHMtI). If and when we have a plan for webview reduction, we'll be sure to make it public and give devs plenty of time to prep for it/provide feedback, etc. |
See also #219 (comment)
The first would be covered by a hint that expressed "hey i'm a webview", and the second would be basically X-Requested-With, right? That was recently removed AFAIU: https://chromestatus.com/feature/5160086884843520 |
That's right, it would be great to see this supported with Client Hints. |
the for android it would be like:
|
The |
Any update on this issue? |
the app can override the user agent metadata to give their own client hints, e.g. they can add their own brand version: https://developer.android.com/reference/androidx/webkit/WebSettingsCompat#setUserAgentMetadata(android.webkit.WebSettings,androidx.webkit.UserAgentMetadata) |
Our request here is to make the contents of what used to be |
In the current user agent we have an indicator of 'wv' that assists with identifying web apps. As well as the web app adding it's identity. I don't see anything that accounts for this, looks like lost functionality.
The text was updated successfully, but these errors were encountered: