salqadri / s3eIOSIdentifiers

A Marmalade extension to acess the advertiser identifier (a.k.a. the IDFA) from iOS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A Marmalade extension to acess the advertiser identifier (a.k.a. the IDFA) from iOS.


Languages

Language:C++ 54.9%Language:C 22.7%Language:Objective-C++ 22.4%