Skip to main content
June 3, 2013
Question

Air 3.8 May 28 bug on Capabilities

  • June 3, 2013
  • 1 reply
  • 848 views

I just discovered a bug in Air 3.8 beta, it is reporting wrong Capabilities info for iOS devices.

I am using iPad 4th gen 6.1.3

tracing the code below gave me ipad non retina info and wrong screen resolution X & Y.

        trace(Capabilities.screenResolutionX, Capabilities.screenResolutionY, Capabilities.os )

        //[trace] 768 1024 iPhone OS 6.1.3 iPad3,4

In my app xml I have requestedDisplayResolution with excludeDevices, it seems that air doesn't work properly with excludeDevices in Capabilities class.

        <requestedDisplayResolution excludeDevices="iPad3,1 iPad3,2 iPad3,3 iPad3,4 iPad3,5 iPad3,6">high</requestedDisplayResolution>

Expected result is that Capabilities.screenResolutionX and Capabilities.screenResolutionY should have nothing to do with requestedDisplayResolution and always return 2048 for Capabilities.screenResolutionX and 1536 for Y

This topic has been closed for replies.

1 reply

Adobe Employee
June 4, 2013

The above behaviour is correct. You are explicitly disable the specified display resolution which is "high"on  mentioned  device e.g. iPad3,4 at <requestedDisplayResolution excludeDevices="iPad3,1 iPad3,2 iPad3,3 iPad3,4 iPad3,5 iPad3,6">high</requestedDisplayResolution> , so devices will work on standard resolution. Request you to follow http://blogs.adobe.com/airodynamics/2012/12/07/excluding-devices-from-requested-display-resolution-mode/, hope this will help.

Regards,

Nimit