userAgent
This property 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 configure this property before initializing the SDK.
Property
copy
/**
custom userAgent
*/
@property (nonatomic, copy, nullable) NSString *userAgent;
Name | Type | Description | Required |
userAgent | NSString | Indicates the customized useragent string to append to the WebView useragent. Note: If this parameter is empty or | Yes |
Sample
copy
func createGriverConfiguration() -> GRVConfiguration {
let configuration = GRVConfiguration()
configuration.userAgent = "Custom UA"
return configuration
}