User agent

The PoqSDK appends a custom user agent string to HTTP requests. This is configurable via CoreSettings.userAgent using the PoqUserAgent data class.

By default, the user agent is set to PoqApp/{versionCode} for all request types. Each property allows overriding the user agent for a specific context:

  • default: The base user agent string used as fallback for all other properties.
  • webView: User agent appended to WebView requests.
  • assets: User agent appended to image/video loading requests.
  • api: User agent appended to API requests.