rhomobile / rhoelements-issues

Issues area for RhoElements
0 stars 0 forks source link

Rhodes System.get_property('device_id') API does not work on iOS6 devices #31

Open eastmanh opened 11 years ago

eastmanh commented 11 years ago

Partner is complaining that these functions don't work on iOS. I have no way to verify.

For our application, we need to get Unique Device ID on iOS 6 devices, however, the Rhodes API System.get_property( device_id ) is not returning a value on iOS 6.

I am aware that Apple switched from UDID ( UIDevice uniqueIdentifier ) to UIFV ( UIDevice identifierForVendor ) in iOS 6. Basically the property name changed in the UIDevice class.

Can we get an updated or patched version of Rhodes API to use the new Apple UIFV identifier? Or is there an extension available? Or maybe there is a different Rhodes API ?

Take a look at these links. It looks like this may be something that Apple disallows. https://developer.motorolasolutions.com/message/5258#5258 https://developer.motorolasolutions.com/thread/3572

Partner states the following: We have tried both System.get_property( device_id ) and System.get_property( phone_id ) and both return empty

They also worked around the issue using the following: We have implemented a Rhodes extension that gets the iOS UIDevice::identifierForVendor. It was very easy to do. I think Motorola should fix the System property 'device_id' in Rhomobile 3.3 because a lot of customers will need it.