로딩중입니다
IGAW Apple IDFA Registration: iOS
4/8/2016 8:19:46 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, call setAppleAdvertisingIdentifier API from AppDelegate's application: didFinishLaunchingWithOptions: and register IDFA value.
(* Warning : Will be called right before igaworksCoreWithAppKey is called)

#import "AppDelegate.h"
#import <AdSupport/AdSupport.h>

@implementation AppDelegate

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

    [IgaworksCore igaworksCoreWithAppKey:@"YOUR_APP_KEY" andHashKey:@"YOUR_HASH_KEY"];

    return YES;
}