playcanvas / playcanvas/engine
pc.platform.mobile returns false on iPad OS
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 16.8k
- Forks
- 2k
- Avg merge
- 4h 32m
- Merged PRs (30d)
- 222
Description
See thread here: https://forum.playcanvas.com/t/bug-ipad-platform-detection-issue/14515
Now iPadOS is asking for the desktop version of the site which means that it is now harder to detect if an iPad is used.
The hacky workaround is to check if it's on an Apple platform and check max touch points as seen here: https://developer.apple.com/forums/thread/119186
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the implementation and tests for pc.platform.mobile, then review the linked forum discussion and Apple guidance on identifying iPadOS when desktop site requests are enabled. Confirm the behavior on iPadOS and ensure the detection reports mobile correctly without changing other platform results.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100