TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Apple Lying About “User Agent” in iPad Pro – Blocking PWAs

11 点作者 getpolarized超过 5 年前

6 条评论

FreakyT超过 5 年前
I, for one, am glad Apple opted to use the macOS user agent for the iPad browser. Previously, so many sites would give iPad users the mobile version of a site because their incompetent webdevs decided that `iOS == mobile` without even bothering to check for screen size.<p>Anything that can be done to prevent this is a net positive for users. Sites should never check browser UAs, and any problems that arise from a “wrong” user agent are the site developers’ fault for doing things incorrectly.
floatingatoll超过 5 年前
It’s not that they’re hostile to web apps, it’s that Apple defines the iPad Pro browser as a desktop browser.<p>Apple made clear that they intend the iPad Pro to present a desktop browser view of the Internet, and has successfully defended their intentions against the wishes of developers to do otherwise. They openly said they’d be doing this and the result is exactly as they intended.
phillipseamore超过 5 年前
UA parsing is considered bad design and trusting UA&#x27;s is unwise. What exactly necessitates UA parsing to detect ipadOS, instead of other guaranteed detection mechanisms, like CSS feature queries and checking if methods are available in JS and others? Also keep in mind that even if you trust the UA string it is not representative for all users. Most (if not all) browsers allow users to toggle features, change flags and more. That includes Safari on all OS&#x27;s.
评论 #21852655 未加载
zapzupnz超过 5 年前
This is a feature of iPadOS 13: the browser can either report itself as an iPad or as the desktop version of Safari; it does the latter by default.<p>iPad users across the board now use a best in class browser and expect a best in class experience. Apple is protecting its users from subpar websites written by subpar developers, especially those who rely on lazy tricks like UA parsing.
h4waii超过 5 年前
Ironically, this page is neigh unreadable on mobile. It&#x27;s all squished due to the absurd first party &quot;ad&quot; on the right column which, coupled with the related posts right below, makes it hard to distinguish the actual content.
评论 #21854902 未加载
campfireveteran超过 5 年前
&quot;Lying&quot; is dishonest clickbait. Presenting a mobile browser with an UA identical to a desktop one is standard practice.