Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 1.39 KB

README.md

File metadata and controls

43 lines (34 loc) · 1.39 KB

s3eIOSIdentifiers

A Marmalade extension to acess the advertisingIdentifier and identifierForVendor (a.k.a. the IDFA and IDFV, respectively) from iOS.

Usage

  1. Clone this whole folder into your project (or add it as a submodule)
  2. Add "s3eIOSIdentifiers" to the subprojects section of your MKB file
  3. Add #include "s3eIOSIdentifiers.h" to the source files where it will be used
  4. Refer to the file s3eIOSIdentifiers.h for more information on the supplied functionality
Checking if tracking is enabled
if (s3eIOSIdentifiersAvailable())
{
	return s3eIOSIdentifiersIsIDFATrackingEnabled();
}
Getting the IDFA
if (s3eIOSIdentifiersAvailable())
{
	return s3eIOSIdentifiersGetIDFA();
}
Getting the IDFV
if (s3eIOSIdentifiersAvailable())
{
	return s3eIOSIdentifiersGetIDFV();
}

Notes

  • 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