Skip to main content
Projectitis
Inspiring
August 30, 2015
Question

Get iOS device info without ANE. Possible?

  • August 30, 2015
  • 1 reply
  • 470 views

Hi all,

I've used a variation of Funky Monkey's Android Native Info class to get Android info, but was wondering if there was something similar for iOS?

Is using flash.system.Capabilities.os still the most reliable way of determining device type?

FYI I'm using it to report device for analytics (NOT for any sort of feature switching).

Cheers,

Peter

This topic has been closed for replies.

1 reply

jadams602
Inspiring
August 30, 2015

Yes, without an ANE, AIR still includes the hardware device info in the Capabilities.os string on iOS, so checking that part of the string will tell you exactly which hardware you are on.

(which comes from the iOS native call of sysctlbyname("hw.machine", ....) )

Ie, the "Hardware strings" row on this Wiki page: https://en.wikipedia.org/wiki/List_of_iOS_devices

as well as a few util code projects like UIDevice-Hardware/UIDevice-Hardware.m at master · erichoracek/UIDevice-Hardware · GitHub