로딩중입니다
IGAW Apple IDFA Registration : Unity iOS
4/8/2016 8:29:32 PM

Apple IDFA Registration

To use Tracking Link or AdPOPcorn Ad services, you have to register Apple's IDFA to your framework.

After adding AdSupport.framework, edit UnityAppController.mm inside of a Classes group in Xcode to integrate.

// Xcode Project
#import <AdSupport/AdSupport.h>
#import <IgaworksCore/IgaworksCore.h>

- (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions{
	if (NSClassFromString(@"ASIdentifierManager")){
		NSUUID *ifa = [[ASIdentifierManager sharedManager] advertisingIdentifier];
		BOOL isAppleAdvertisingTrackingEnabled = [[ASIdentifierManager sharedManager] isAdvertisingTrackingEnabled];
		[IgaworksCore setAppleAdvertisingIdentifier:[ifa UUIDString] isAppleAdvertisingTrackingEnabled:isAppleAdvertisingTrackingEnabled];
		NSLog(@"[ifa UUIDString] : %@", [ifa UUIDString]);
	}
}