Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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