sap.ui.Device: phone instead of tablet on iPad iOS 13.x
See original GitHub issueOpenUI5 version: tested with 1.52.29 and latest
Browser/version (+device/version): Safari / iPad Air 2 (13.1.2)
URL: https://openui5.hana.ondemand.com/
Steps to reproduce the problem:
- Open https://openui5.hana.ondemand.com/ on iPad Safari with iOS 13.x
- Open Debugger with Safari Developer Tools
- Check sap.ui.Device.system on console
What is the expected result?
Device type tablet
is true
Global class sap-tablet
What happens instead?
Device type tablet
is false
and phone
is true
Wrong global class sap-phone
Any other information?
With iOS 12.x everything works fine
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:9 (4 by maintainers)
Top Results From Across the Web
sap.ui.Device recognize iPad Pro as phone - SAP Community
Hi all, I am working on the iOS hybrid app for iPad implemented by SAPUI5. It used to support iPad/iPad mini well, until...
Read more >jQuery.device.is - API Reference - Demo Kit - SAPUI5 SDK
In this case it is not possible to differentiate between tablet and phone relying on the user agent. Deprecated as of version 1.17.0....
Read more >Turn on audio descriptions on your iPhone, iPad, or iPod touch
Choose the audio-described track that you want to use. Use audio descriptions by default. Go to Settings > Accessibility. Tap Audio Descriptions ......
Read more >SAP Fiori Mobile (v2.0.x) - Cognex Mobile Barcode SDK
Android) and .ipa (for iOS) files ready to be installed on mobile devices. ... by UI5 automatically during the startup of the app...
Read more >T-Mobile app | T-Mobile Support
Simplify your mobile life with the T-Mobile app. With it, you can manage your account and services without lifting a finger—just a thumb!...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi,
The root cause of the issue is related to the new user agent string in Safari browsers running on iPads with iOS 13 and activated “Requesting desktop sites”. This feature is activated by default and it seems like apple is dissolving the borders between their devices. With Sidecar an iPad is also usable as input device or second screen for a MacBook.
The “Requesting desktop sites” feature can be deactivated in the iOS settings for Safari in order to restore the known UI5 behavior (desktop=phone=combi=“false”, tablet=“true”).
With change 625d15b, we want to adapt our UI5 device detection to this new user agent. In the future such a iPad is handled as Combi device (desktop=tablet=combi=“true”, phone=“false”). The Combi flag was introduced for touch-capable Windows 8+ devices, but such iPads fits also best into this category.
@4lexBaum After some time validation in the master branch, we want to down-port the change to all long-term supported branches: https://sapui5.hana.ondemand.com/versionoverview.html
Hi @clemai,
perfect! We use 1.52 and wait for the next patch 😃
Best Alex