setAppendUserAgent
The setAppendUserAgent API allows the super app to append a customized user agent string to the WebView user agent that is created by the SDK for loading mini program pages.
Note: Must call this API before initializing the SDK.
Method signature
copy
setAppendUserAgent(appendantUserAgent:String?)
Parameters
Name | Type | Description | Required |
appendantUserAgent | String | Indicates the customized useragent string to append to the WebView useragent. Note: If this parameter is empty or | Yes |
Samples
copy
IAPGriverConfig.getInstance().setAppendUserAgent("Custom UA")