New update on the as3NativeAlert and my older post:.
Added support for the SystemProperties class for IOS.
Available parameters for IOS:
- os – like in Capabilities
- UID – the UDID of the device
- name – the name of the device
Usage:
if(SystemProperties.isSupported()){ var dictionary:Dictionary = SystemProperties.getProperites(); for (var key:String in dictionary) { var readingType:String = key; var readingValue:String = dictionary[key]; trace(readingType + "=" + readingValue); } dictionary = null; }
thanks for sharing, btw i think UDID is deprecated via iOS 5.1? and apple will reject any app that access it (rumor)?
Im not sure. I added it because somone asked me for it. It is deprecated but I didn’t have any fadeback on it. I was going to change it but that maby in the next commit. I plan to add a popup with lists for IOS and date picker for both IOS and Android.
This feature has help me out in a big way, however I’m not submitting to the app store so I can continue to use it. Thank you very much!
nice, btw, if you willing to change this (i do need UDID for stat) may be we can use CFUUIDCreate instead, Adobe do use this too, please follow this link for more info http://blogs.adobe.com/digitalpublishing/2012/04/changes-to-udid-may-impact-digital-publishing-apps.html which refer to http://developer.apple.com/library/ios/#documentation/uikit/reference/UIDevice_Class/DeprecationAppendix/AppendixADeprecatedAPI.html#//apple_ref/occ/instp/UIDevice/uniqueIdentifier and http://developer.apple.com/library/ios/#documentation/CoreFoundation/Reference/CFUUIDRef/Reference/reference.html#//apple_ref/c/func/CFUUIDCreate
fyi : i didn’t try it yet :)
Using CFUUIDCreate is not so straightforward because the generated number diferent every time it is called but saving it only in air application it’s not enough to keep it beacause in case the app was uninstalled the number will not be remembered.
So there for it must be saved to system main properties.
Because the UDID is deprecated it will be removed in the next commit and replaced with UID.