iPad OS and Safari 13 on iPad - desktop vs tablet detection
- Dominant language
- PHP
- Stars
- 4.9k
- Forks
- 545
- PR merge metrics
- No merged PRs in 30d
Description
So I have found a problem. With the release of iPad OS and iOS 13, the Safari agent is causing some problems.
I have an app that is mobile only and will only show the mobile app if the agent is detected as being mobile or tablet. But with the new "desktop class browsing" on iPad it's now showing the landing page website instead of the app.
In my code I'm doing:
```
if ($agent->isDesktop()) {
...show the landing page
} else {
...show the mobile web app
}
```
What do we do different? or will the agent system get updated to handle iPad?
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue centers on the $agent->isDesktop() call and Safari/iPadOS user-agent handling. Start by tracing that entry point and the existing desktop/tablet detection, then compare behavior for the reported iPadOS Safari agent. Done means the parser supports the requested iPad classification without routing the mobile app to the landing page.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100