-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
bug(platform): Ipad pro not detected properly #10209
Comments
So here is my findings so far: On the latest iPad simulator running 10.2 I am not able to repro this issue. I am adding new unit tests to cover this area a little better just to be 100% sure and to prevent this from breaking in the future. If you can, could you post a repo i could use to reproduce this issue? |
Removing this from the milestone at the moment since it is not currently reproducible, but @dylanvdmerwe let me know when you are able to do more testing with your device and ill take another look. Thanks! |
My iPad (model 5,3) user agent is:
Note that this seems to be correctly identified as an iPad. It's for model 6,7 that seems to be having a problem. |
Hmm from some searching on the web it looks like the ipad model 6,7 is the iPad pro. Doing a quick test with the ipad pro simulator. Thanks for the UA @dylanvdmerwe |
Finally figured out the issue here. I can confirm that this seems to be specific to the iPad pro at the time. It is possible that this also affects other large tablets but im not aware of any other tablets as big as the iPad pro. The biggest Android tablet i know of is the Google Pixel c, but it is only a 10.2 inch screen and the nexus 10, which is a 10 inch screen, works fine. |
This will be fixed in the next release. Released a nightly for this:
Let me know if you see any issues, @dylanvdmerwe :) |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Ionic version: (check one with "x")
[ ] 1.x
[x] 2.x
I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
I have the following code:
When digging through my logs, I found the following which seemed odd:
This particular app is only able to be run on iPads. The
Platform
user agent detection logic is not correct for the latest iPads it seems.Note in the screenshot how all the iPad models 6,7 and 6,8 show up as iPhone whereas they are all running on iPad devices.
Expected behavior:
Check the
Platform
user agent detection logic on the latest iPad devices.Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):The text was updated successfully, but these errors were encountered: