Experience-Monks / Experience-Monks/detect

[Bug] iPad iOS13/14 returns desktop

Open
#5 0 comments 0 reactions 1 assignee Claimed by @iranreyes View on GitHub
bug
Dominant language
JavaScript
Stars
3
Forks
2
PR merge metrics
No merged PRs in 30d

Description

## Describe the bug
iPad iOS13/14 returns desktop

## To Reproduce
Can be tested in XCode
## Screenshots
![image](https://user-images.githubusercontent.com/4369064/96282279-824def00-0fa8-11eb-854e-04d8a55e6cc0.png)

## Additional context
I tested with upgrading to latest `bowser@2.11` and it's the same result

We can add touch device detection e.g.
```
export const isTouchDevice =
typeof window !== 'undefined' &&
('ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0);
```
but idk if we can distinguish tablet anymore (by the user agent) other than detecting if it's a touch device and not a phone
@iranreyes

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.