-
Notifications
You must be signed in to change notification settings - Fork 956
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
Support for navigator in Safari on iPad with iOS 13 or later #660
Conversation
Hi @ma2yama thanks for your latest PR. I did a bit of research on your fix and it does indeed seem to be a widespread way of detecting iPad with iOS >=13. I will merge this, but - as it affects files outside of the location-based code - @kalwalt do you want to have a quick check too before I do so? It's just adding an iPad check to a few OS/browser detection statements - it all looks good to me but just thought I'd double check with you first. Thanks. |
i have red the article, unfortunately i have any iPad on my hands, so i can not test. Anyway i'm going to take a trip in few days for 3 weeks, at least i can test on my devices.
look different form the test suggested in the article you mentioned, instead in |
@kalwalt from what I can make out these are two different ways of detecting iPads with newer iOS, but I agree it makes sense to do it the same way throughout the code for consistency. @ma2yama do you want to modify the PR to always use I can test on my own Android device. |
@nickw1 @kalwalt thank you for your review.
'navigator.platform' is still available, but has been deprecated. So, where I'm using 'navigator.platform' now, I'd like to use 'navigator.userAgent', okay? |
@ma2yama Thanks for your reply. Yes, it would be great if you could update the code to use the non-deprecated version throughout. As soon as you've done this and tested it I will test on my own device (Chrome, Android). @kalwalt if it works on my device (I don't have access to an iPad either) after the changes, are you happy if I merge it? |
I agree with you stick with the non deprecated version, @nickw1 of course you can merge it after testing, i think it will be no issues on other devices. |
@nickw1 Thanks for the reply. The fix to not use navigator.platform has been completed. |
Hi @ma2yama many thanks - have tested location-based examples on my Android device and all working as expected. |
What kind of change does this PR introduce?
bugfix
Can it be referenced to an Issue? If so what is the issue # ?
No
How can we test it?
Using location-based examples in Safari on iPad with iOS 13 or later.
Summary
The navigator in Safari on iPads with iOS 13 or later has changed.
Fixed to support the new navigator.
Does this PR introduce a breaking change?
No
Please TEST your PR before proposing it. Specify here what device you have used for tests, version of OS and version of Browser
iPad (9th generation), mobile Safari, iOS 18.3.1
Other information
https://stackoverflow.com/questions/60482650/how-to-detect-ipad-useragent-on-safari-browser