• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Get iOS device info without ANE. Possible?

Engaged ,
Aug 30, 2015 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

404

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
community guidelines
Engaged ,
Aug 30, 2015 Aug 30, 2015

Copy link to clipboard

Copied

LATEST

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

Votes

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
community guidelines