-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iPad 2019 is not recognized as tablet! #820
Comments
I'm facing the same issue, but I'm not sure this is a problem with the Mobile Detect library... The iPad is wrongly identifying itself as a computer, to make sure the servers sends a desktop view to the browser. See also this thread at Apple, started July 2nd... https://forums.developer.apple.com/thread/119186 Apparently there is a switch in the settings to control this, but Apple in all its wisdom has decided that faking a computer on a tablet screen is a good idea, completely overlooking the fact that as a webdeveloper you might want to alter the HTML to provide a better user interface for touch screens. FWIW: Chrome on iPad still identifies itself as iPad... |
Opened Settings -> Safari -> Request Desktop Website -> All websites. That option is enabled by default. I disabled it and the proper User Agent is now displayed. |
You can switch of one iPad (assuming you are the owner) by this settings. |
Mac Safari User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Safari/605.1.15 iPad Safari User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Safari/605.1.15 iPad Ionic App Webview User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Related: https://developer.apple.com/forums/thread/119186 serbanghita#554 serbanghita#795 serbanghita#809 serbanghita#820 serbanghita#827
Same issue |
My quick fix on ipad air 2020 |
Thank you! |
Just like @mlaurense and @RazorEdgexD pointed out, there is nothing the library can do without breaking existing tests. I would go with @kamyweb 's response. I will put his response in the https://github.com/serbanghita/Mobile-Detect/blob/master/docs/KNOWN_LIMITATIONS.md |
How does this work as a fix to identify iPad ??? |
this would match all Macs with macOS |
Yes indeed - and iPads (as I confirmed by testing it just now). I was puzzled because I thought the rule was being put forward in some way as a method to recognise iPads. |
Hello
My new iPad (2019 - 7th generation, iPadOS 13.2.2) is not recognized as tablet. Can you solve this problem?
Thank you very much.
Greetings from Switzerland
Adrian
Please specify the User-Agent. Go to https://demo.mobiledetect.net and copy-paste it here.
The text was updated successfully, but these errors were encountered: