A Marmalade extension to acess the advertisingIdentifier and identifierForVendor (a.k.a. the IDFA and IDFV, respectively) from iOS.
- Clone this whole folder into your project (or add it as a submodule)
- Add "s3eIOSIdentifiers" to the subprojects section of your MKB file
- Add
#include "s3eIOSIdentifiers.h"
to the source files where it will be used - Refer to the file
s3eIOSIdentifiers.h
for more information on the supplied functionality
if (s3eIOSIdentifiersAvailable())
{
return s3eIOSIdentifiersIsIDFATrackingEnabled();
}
if (s3eIOSIdentifiersAvailable())
{
return s3eIOSIdentifiersGetIDFA();
}
if (s3eIOSIdentifiersAvailable())
{
return s3eIOSIdentifiersGetIDFV();
}
- You're still allowed to use the IDFA for certain cases even if the user has disabled tracking
- Refer to the ASIdentifierManager and UIDevice class reference pages for more information