Highlighted

Get iOS device info without ANE. Possible?

Engaged ,
Aug 30, 2015

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

TOPICS
Development

Views

330

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Get iOS device info without ANE. Possible?

Engaged ,
Aug 30, 2015

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

TOPICS
Development

Views

331

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Aug 30, 2015 0
Engaged ,
Aug 30, 2015

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 30, 2015 0