Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

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

Add the default standardized "User-Agent" for API requests handled by OkHttp #595

Open
luongvo opened this issue Dec 13, 2024 · 0 comments

Comments

@luongvo
Copy link
Member

luongvo commented Dec 13, 2024

Why

According to the real project use case, we might need to send a standard "User-Agent" for API request headers. While this is supported by default iOS with Alamofire, Android can use this small OkHttp extension to standardize sending the same User-Agent structure as iOS https://github.com/AckeeCZ/android-user-agent.

For example, Tapito/2.5.8 (com.tapmedia.tapito.debug; build:1520; Android 7.0; Model:Nexus 5X) okhttp/3.2.0

Who Benefits?

Developers, PMs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant