question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

sap.ui.Device: phone instead of tablet on iPad iOS 13.x

See original GitHub issue

OpenUI5 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:

  1. Open https://openui5.hana.ondemand.com/ on iPad Safari with iOS 13.x
  2. Open Debugger with Safari Developer Tools
  3. 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? Screenshot 2019-10-04 at 13 24 03

With iOS 12.x everything works fine

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
clemaicommented, Oct 14, 2019

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

0reactions
4lexBaumcommented, Oct 16, 2019

Hi @clemai,

perfect! We use 1.52 and wait for the next patch 😃

Best Alex

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found