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

Set User-Agent string for requests #36

Open
twodayslate opened this issue Jul 8, 2021 · 2 comments
Open

Set User-Agent string for requests #36

twodayslate opened this issue Jul 8, 2021 · 2 comments

Comments

@twodayslate
Copy link
Owner

twodayslate commented Jul 8, 2021

As requested by @pushcx

#19 (comment)

Awaiting official guidance on what the string should be

@twodayslate
Copy link
Owner Author

@pushcx wants $APP_NAME/$VERSION ($ARCH; $OS; +https://contact.link/for/the/app)

@twodayslate
Copy link
Owner Author

twodayslate commented Oct 2, 2022

I'm implementing this as I convert my network calls to async. See #29

As requested this is what I was returning on the simulator:

(lldb) po ua
"claw/1.2.0 (hppa; iOS 15.5; +https://zac.gorak.us/ios)"

I don't see much value in the architecture so I'm changing it to the device model.

This is what you will then see:

(lldb) po ua
"claw/1.2.0 (iPhone10,4; iOS 15.5; +https://zac.gorak.us/ios)"

You can lookup the models here: https://www.theiphonewiki.com/wiki/Models

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

No branches or pull requests

1 participant