playcanvas / playcanvas/engine

pc.platform.mobile returns false on iPad OS

Open
#2,383 2 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.