-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TIMOB-10787] iOS: Expose modern UUID-replacements #8953
Conversation
iphone/Classes/PlatformModule.m
Outdated
#if defined(USE_TI_PLATFORMIDENTIFIERFORADVERTISING) || defined(USE_TI_PLATFORMGETIDENTIFIERFORADVERTISING) | ||
- (NSString *)identifierForAdvertising | ||
{ | ||
return [[[ASIdentifierManager sharedManager] advertisingIdentifier] UUIDString]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apple here suggest, we should use this by checking isAdvertisingTrackingEnabled. We can expose "isAdvertisingTrackingEnabled" property as well . Ygor Lemos has also suggested the same in comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, added it!
iphone/Classes/PlatformModule.m
Outdated
} | ||
|
||
#if defined(USE_TI_PLATFORMIDENTIFIERFORADVERTISING) || defined(USE_TI_PLATFORMGETIDENTIFIERFORADVERTISING) | ||
- (NSNumber *)isAdvertisingTrackingEnabled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make "isAdvertisingTrackingEnabled" property in .h file similar to
+@Property(readonly,nonatomic) NSString *identifierForAdvertising;
@hansemannn Can you resolve conflicts please. |
… TIMOB-10787 # Conflicts: # apidoc/Titanium/Platform/Platform.yml # iphone/Classes/PlatformModule.h # iphone/Classes/PlatformModule.m # iphone/Classes/defines.h
@vijaysingh-axway Restored and added unit-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CR and FT passed.
FR Passed. IdentifierForVendor and IdentifierForAdvertising return the appropriate values. Tested on multiple sims/devices with different apps and with advertising tracking enabled and disabled. |
JIRA: https://jira.appcelerator.org/browse/TIMOB-10787