Search code examples
iospush-notificationapple-push-notificationsadsudid

ios push notification and IDFA issue


In my ios app I've used

 uuid = [[ASIdentifierManager sharedManager] advertisingIdentifier]

as udid for my push notification.

Today when I tried to publish my app, itunes asks me:

This app uses the Advertising Identifier to (select all that apply):

  1. Serve advertisements within the app.
  2. Attribute this app installation to a previously served advertisement.
  3. Attribute an action taken within this app to a previously served advertisement.

I use the uuid only for push notification. which of the 3 options should I choose?

Thanks in advance.


Solution

  • [[UIDevice currentDevice] identifierForVendor]
    

    Is the better choice. You offer one single identifier for a device, even if the settings are reset.

    The value of this property is the same for apps that come from the same vendor running on the same device. A different value is returned for apps on the same device that come from different vendors, and for apps on different devices regardless of vendor.UIDevice#identifierForVendor

    For more explanation, heres a good summary: iOS6 UDID - What advantages does identifierForVendor have over identifierForAdvertising?

    So, in case you do not use the advertisingIdentifier at all for advertising, you shouldn't make use of this => unfortunately, your question regarding the 3 approaches is obsolete.