添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User agent must contain at least 'Element X' and 'Android'.

Currently on Element Android we have something like

Element/1.5.0 (Xiaomi Mi 9T; Android 11; RKQ1.200826.002; Flavour GooglePlay; MatrixAndroidSdk2 1.5.0)

So I guess we can get inspired from this.

  • To provide the user agent to the Rust SDK, use ClientBuilderInterface.userAgent(str)
  • There is for now no way to pass a user agent to AuthenticationService . -> Add contructor param to provide user agent to AuthenticationService matrix-org/matrix-rust-sdk#2156
  • Use an OkHttp interceptor to provide the user agent to the request the app is handling itself.
  • Provide user agent to rageshakes.
  • For clarification, it is not a hard must to be in that format. I am interested in the ua to allow for server-side usage analysis - so all I really need is confirmation on what you choose.

    I need to be able to say 'of all possible user agents, can I identify specifically Element X Android?'