webview_cef icon indicating copy to clipboard operation
webview_cef copied to clipboard

Not able to set user agent

Open szwang1 opened this issue 2 years ago • 2 comments

Class cef_types has user_agent parameter, but it is returned value. How to set user agent? Thank u.

szwang1 avatar Jun 26 '23 09:06 szwang1

@szwang1 CefSettings have a property user_agent, you can find CefSettings used in startCEF(). I don't know do we really need a unified interface to set up the same user agent for all platforms @hlwhl

SinyimZhi avatar Jun 26 '23 11:06 SinyimZhi

@szwang1 CefSettings have a property user_agent, you can find CefSettings used in startCEF().

I don't know do we really need a unified interface to set up the same user agent for all platforms @hlwhl

Currently users can modify UA easily by making small changes to plugin code. So it’s a low priority feature. We can provide unified settings like CEF in the future.

hlwhl avatar Jul 01 '23 14:07 hlwhl

we afford a unified interface to allow developer set userAgent when cef initialized. but developers need to handle injecting different user agent parameters based on different operating systems themselves(except for some publicly available operating system information, CEF will obtain it on its own). @szwang1

SinyimZhi avatar May 10 '24 05:05 SinyimZhi