AhsanAyaz / ngx-device-detector

An Angular v7+ library to detect the device, OS, and browser details.
https://ahsanayaz.github.io/ngx-device-detector
MIT License
517 stars 101 forks source link

iPads are detected as desktop devices #288

Open zbigniewkuminski opened 5 months ago

zbigniewkuminski commented 5 months ago

Describe the bug iPads are detected as desktop devices

To Reproduce Steps to reproduce the behavior:

  1. Open your app with developer tool mode.
  2. Toggle device to emulate mobile version.
  3. Select iPad Air or iPad Pro mode.
  4. Function isDesktop() returns true

Expected behavior Function isDesktop() should return false

Desktop (please complete the following information):

nagarajhubli commented 5 months ago

By default Safari on iPad requests desktop version of website. If we disable this, then it sends proper iPad user agent

https://forums.developer.apple.com/forums/thread/119186?answerId=373517022#373517022

empro-narendervaddepelly commented 3 months ago

This is still an Issue. Any luck?