Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I found that my iPad PRO lies about its user agent and will pretend to be MacOS by default. They don't even provide you with a hint to detect that it's a lie.


Yes, user agents are a mess (see this comment for non-Apple examples: https://news.ycombinator.com/item?id=23910637). They're not a good way to detect features as a web developer.


Yes, because Google Docs would throw a fit if it didn't.


In fairness, the user agent string isn't, and wasn't ever, intended to be a user-facing feature. It shouldn't matter to you what the user agent string reports.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: