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

Improvements to the ClientHints - HTTP_SAPPHIRE_DEVICETYPE #7059

Open
liviuconcioiu opened this issue Mar 20, 2022 · 0 comments
Open

Improvements to the ClientHints - HTTP_SAPPHIRE_DEVICETYPE #7059

liviuconcioiu opened this issue Mar 20, 2022 · 0 comments

Comments

@liviuconcioiu
Copy link
Collaborator

Bing app adds a few headers that allows detection, in this case iPhone models.

[HTTP_USER_AGENT] => Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.7.1 Mobile/15E148 Safari/605.1.15 BingSapphire/1.0.400228002
[HTTP_SAPPHIRE_DEVICETYPE] => notInList
[HTTP_SAPPHIRE_OSVERSION] => 14.7.1

[HTTP_USER_AGENT] => Mozilla/5.0 (iPhone; CPU iPhone OS 13_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.5.1 Mobile/15E148 Safari/605.1.15 BingSapphire/1.0.390928005
[HTTP_SAPPHIRE_DEVICETYPE] => iPhone7
[HTTP_SAPPHIRE_OSVERSION] => 13.5.1

[HTTP_USER_AGENT] => Mozilla/5.0 (iPhone; CPU iPhone OS 15_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Mobile/15E148 Safari/605.1.15 BingSapphire/1.0.400228002
[HTTP_SAPPHIRE_DEVICETYPE] => iPhone7Plus
[HTTP_SAPPHIRE_OSVERSION] => 15.2

[HTTP_USER_AGENT] => Mozilla/5.0 (iPhone; CPU iPhone OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3.1 Mobile/15E148 Safari/605.1.15 BingSapphire/1.0.400228002
[HTTP_SAPPHIRE_DEVICETYPE] => iPhone8
[HTTP_SAPPHIRE_OSVERSION] => 15.3.1

[HTTP_USER_AGENT] => Mozilla/5.0 (iPhone; CPU iPhone OS 15_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3 Mobile/15E148 Safari/605.1.15 BingSapphire/1.0.400117001
[HTTP_SAPPHIRE_DEVICETYPE] => iPhoneSE
[HTTP_SAPPHIRE_OSVERSION] => 15.3

[HTTP_USER_AGENT] => Mozilla/5.0 (iPhone; CPU iPhone OS 15_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Mobile/15E148 Safari/605.1.15 BingSapphire/1.0.400228002
[HTTP_SAPPHIRE_DEVICETYPE] => iPhone11Pro
[HTTP_SAPPHIRE_OSVERSION] => 15.2

[HTTP_USER_AGENT] => Mozilla/5.0 (iPhone; CPU iPhone OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3.1 Mobile/15E148 Safari/605.1.15 BingSapphire/1.0.400228002
[HTTP_SAPPHIRE_DEVICETYPE] => iPhone12
[HTTP_SAPPHIRE_OSVERSION] => 15.3.1

[HTTP_USER_AGENT] => Mozilla/5.0 (iPhone; CPU iPhone OS 14_2_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.2.1 Mobile/15E148 Safari/605.1.15 BingSapphire/1.0.400228002
[HTTP_SAPPHIRE_DEVICETYPE] => iPhone12Pro
[HTTP_SAPPHIRE_OSVERSION] => 14.2.1

[HTTP_USER_AGENT] => Mozilla/5.0 (iPhone; CPU iPhone OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3.1 Mobile/15E148 Safari/605.1.15 BingSapphire/1.0.400228002
[HTTP_SAPPHIRE_DEVICETYPE] => iPhone12ProMax
[HTTP_SAPPHIRE_OSVERSION] => 15.3.1

[HTTP_USER_AGENT] => Mozilla/5.0 (iPhone; CPU iPhone OS 15_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Mobile/15E148 Safari/605.1.15 BingSapphire/1.0.400228002
[HTTP_SAPPHIRE_DEVICETYPE] => iPhoneX
[HTTP_SAPPHIRE_OSVERSION] => 15.4

[HTTP_USER_AGENT] => Mozilla/5.0 (iPhone; CPU iPhone OS 15_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.3.1 Mobile/15E148 Safari/605.1.15 BingSapphire/1.0.400228002
[HTTP_SAPPHIRE_DEVICETYPE] => iPhoneXR
[HTTP_SAPPHIRE_OSVERSION] => 15.3.1
liviuconcioiu added a commit to liviuconcioiu/device-detector that referenced this issue Feb 13, 2024
sanchezzzhak added a commit that referenced this issue Feb 15, 2024
* Improves detection for Apple devices
ref #7059
---------

Co-authored-by: Tutik Alexsandr <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@liviuconcioiu and others