Skip to content
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 User-Agent Detection #77

Open
rolikeusch opened this issue Jul 6, 2024 · 2 comments
Open

iPad User-Agent Detection #77

rolikeusch opened this issue Jul 6, 2024 · 2 comments
Labels
bug Something isn't working core Related to core

Comments

@rolikeusch
Copy link

If i visit a website with my iPad the os is detected as macos and the device as desktop.
Would be great if an iPad would correctly detected.

@ayuhito ayuhito added bug Something isn't working core Related to core labels Jul 6, 2024
@ayuhito ayuhito changed the title os / device detection enhancement iPad User-Agent Detection Jul 6, 2024
@ayuhito
Copy link
Member

ayuhito commented Jul 6, 2024

This actually might be very difficult to resolve. Since iPadOS 13, iPads return the exact same user-agent as a regular macOS device.

If you go to Settings -> Safari -> Request Desktop Website -> All websites. That option is enabled by default. If you disable it, then the user-agent of the device would show that it is an iPad again. I'll see if there is a more reliable method we can use to detect iPads without doing something invasive in terms of privacy, but it is not as easy as it seems.

@rolikeusch
Copy link
Author

Oh I see that this is not an easy task or even possible if the user use Request Desktop Website settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working core Related to core
Projects
None yet
Development

No branches or pull requests

2 participants