News for hackers. Stuff that matters.
Re:Show HN: DeepSeek My User Agent by oefrha on Sunday January 26, 2025 @07:49PM (#42836053)
iPadOS’s Safari user agent identifies itself as macOS, that’s why. Prior to iPadOS it did contain the string iPad; that was removed. So it can’t tell if it’s an iPad or a Mac with a small vertical screen, although a human would consider the former more likely.
Re:Show HN: DeepSeek My User Agent by VagabundoP on Monday January 27, 2025 @02:26AM (#42838312)
And that’s why so many kids had trouble registering their iPad on our network. As it would not send the mobile registration to the iPads

<sigh@Apple>

Re:Show HN: DeepSeek My User Agent by gkbrk on Monday January 27, 2025 @03:47AM (#42838830)
It's not an iPad or Apple issue if your registration system is using the User-Agent for weird reasons.
Re:Show HN: DeepSeek My User Agent by VagabundoP on Monday January 27, 2025 @07:37AM (#42840493)
Sure it does, but Apple should be sending the correct User Agent string, not making one up.
Re:Show HN: DeepSeek My User Agent by macNchz on Monday January 27, 2025 @08:03AM (#42840698)
Browsers have been lying about their identities via their user agent strings since 1995.
Re:Show HN: DeepSeek My User Agent by Dalewyn on Monday January 27, 2025 @08:37AM (#42841001)
As far as my Chromium is concerned, it identifies as a...: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36

The only thing it doesn't identify as is Internet Explorer.

(Yes it's an old version, no I will update when I feel like it. Shush.)

Re:Show HN: DeepSeek My User Agent by oefrha on Monday January 27, 2025 @02:59AM (#42838553)
Don’t know about your particular problem, but I’m pretty sure it was largely a response to iPads being sent to mobile sites with horrible usability thanks to navigator.userAgent.match(/iPhone|iPad|iPod/) or the server-side equivalent. The problem was amplified by the release of the 12.9’’ iPad Pro, so self-identifying as a Mac made sense.
Re:Show HN: DeepSeek My User Agent by VagabundoP on Monday January 27, 2025 @07:38AM (#42840507)
Its not a Mac though. I'd much prefer Apple use the User Agent correctly rather than hack around it like that.

The system we used did use user agents to identify mobile devices or computers. And gave the iPad users a terrible experience because Apple lied.

Re:Show HN: DeepSeek My User Agent by afavour on Monday January 27, 2025 @09:29AM (#42841463)
User agent strings are fundamentally a hack though. They all identify themselves as Mozilla!
Re:Show HN: DeepSeek My User Agent by buzzerbetrayed on Monday January 27, 2025 @11:46PM (#42848931)
Well I’m glad Apple prioritizes us over you the. I don’t care that you want it a different way. Apple forcing the end of bad practices in this instance is a win.