Question
Capgemini
Capgemini
SE
Capgemini
Posted: 3 days ago
Last activity: 3 days ago
Last activity: 27 Nov 2024 5:32 EST
pyIsTablet When rule doesn't work for all tablets (bug?)
Hello we have noticed that pyIsTablet when-rule doesn't return true for iPad 9.
The User Agent String returned from the iPad is:
- pxRequestor.pyUserAgent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Safari/605.1.15 GoodAccess/ Proprietary information hidden1"
And as it doesn't contain anything related to these words, the when-rule returns false:
- iPad, Touch, Windows, Phone, Android, Mobile, Silk, Desktop
I noticed that this is not a new issue in this Stackoverflow post:
ios - How to detect iPad Pro as iPad using javascript? - Stack Overflow
***Edited by Moderator Rupashree S. to add Capability tags***