cancel
Showing results for 
Search instead for 
Did you mean: 

sap.ui.Device recognize iPad Pro as phone

Former Member
0 Kudos

Hi all,

I am working on the iOS hybrid app for iPad implemented by SAPUI5. It used to support iPad/iPad mini well, until iPad Pro published.

When the app runs on iPad Pro, the page displays wrongly in the phone version without master-detail design. After researching on this issue, I found SAPUI5 recognizes iPad Pro as phone device wrongly instead of tablet, which caused the display issue.

As seeing the screenshots, sap.ui.Device.system recognized iPad Air as tablet, but recognized iPad Pro as phone.

Do you have any ideas of how to solve this issue? How could SAPUI5 support iPad Pro?

Thanks in advance!

Best Regards,

Angel

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182372
Active Contributor
0 Kudos

function isTablet(customUA) {

  var ua = customUA || navigator.userAgent;


  if (device.os.name === device.os.OS.IOS) {

  return /ipad/i.test(ua);

User Agent string wrong on iPad Pro Cordova web... | Apple Developer Forums