Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
WebView.GetCustomUserAgent
Queries the current custom user agent string.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
WebView | 2.9 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ✅ Yes |
MBS( "WebView.GetCustomUserAgent"; WebViewerRef ) More
Parameters
Parameter | Description | Example |
---|---|---|
WebViewerRef | Either the Web Viewer Object Name or the Web Viewer ID as returned by "WebView.FindByName" function. | "web" |
Result
Returns current user agent text or error.
Description
Queries the current custom user agent string.Use WebView.SetCustomUserAgent to set it.
Add iOS with version 9.3.
Implemented for Windows with Microsoft Edge/Chrome engine in MBS Plugin 11.5 when using FileMaker Pro 19.4 or newer.
Examples
Query it on Windows:
MBS("Webview.GetCustomUserAgent"; "web")
Example result: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36 Edg/94.0.992.31
See also
Blog Entries
This function is free to use.
Created 18th August 2014, last changed 17th October 2021