[TIMOB-10787] iOS: Expose UDID replacements available in iOS6
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-11-13T19:13:43.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | Release 7.0.0 |
Components | iOS |
Labels | n/a |
Reporter | Max Stepanov |
Assignee | Hans Knöchel |
Created | 2012-09-05T15:53:33.000+0000 |
Updated | 2017-11-13T23:19:35.000+0000 |
Description
[[UIDevice currentDevice] identifierForVendor]:
* ID that is identical between apps from the same developer
* Erased with removal of the last app for that Team ID
* Backed up
[[UIDevice currentDevice] identifierForAdvertising]
* Unique to the device
* Available to all applications • Used for advertising
* iAd has converted from UDID for iOS 6 and later
* Reset with Erase All Content & Settings
* Backed up
Can you please implement this as a replacement for Ti.Platform.id ? Just "identifierForVendor" as the Advertising isn't allowed in apps...
PR: https://github.com/appcelerator/titanium_mobile/pull/8953
@Hans if we are fetching the identifierForAdvertising for iOS, can't we also map the isAdvertisingTrackingEnabled so we can check it before fetching the identifierForAdvertising according to Apple Guidelines in order to avoid rejections? I have mapped it on one of my modules that fetches the advertising Ids. Check it here https://github.com/pinio/tiads/blob/master/ios/Classes/NinjaYgorTiadsModule.m#L81 Also, can we have parity for Android? I'd suggest that for android, we map the AdvertisingIdClient.getAdvertisingIdInfo and Secure.ANDROID_ID for the "vendorIdentifier". Also did it on my module in here: https://github.com/pinio/tiads/blob/master/android/src/ninja/ygor/tiads/TiAdsModule.java It would be awesome if we could access all those Ids directly on from Ti core sdk without modules.
[~ygbr] Totally agree! I will add
isAdvertisingTrackingEnabled
, can you do the Android parity? Otherwise we probably would put the PR on hold until we have the Android resources for this feature (as the Android team has bigger priorities right now).Test-case:
Verified in SDK build 7.0.0.v20171113145138