Apple IDFA の送信
adbrixの計測機能、adPOPcornのオファーウォール、LiveOperationといったサービスをご利用される場合、弊社のframeworkにAppleのIDFAを登録してください。
AdSupport.frameworkを追加した後、Xcode 内の Classes グループに位置した UnityAppController.mm を直接編集を行います。
// 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]);
}
}