lytics / ios-sdk

MIT License
0 stars 0 forks source link

Add CurrentUserManager.idfaProvider #113

Closed mgacy closed 1 year ago

mgacy commented 1 year ago

Removes idfa from stored values in favor of an idfaProvider member on CurrentUserManager. The live implementation always uses ASIdentifierManager.advertisingIdentifier in accordance with the guidance in the documentation:

As a best practice, don’t store the advertising identifier value; access advertisingIdentifier instead. Users can change their authorization for tracking at any time in Settings > Privacy > Tracking. Check your app’s authorization using the App Tracking Transparency API trackingAuthorizationStatus to determine the user’s intent.

This prevents users from setting custom IDFAs and ensures that the correct value is always used.

This addresses the primary concern of #53