app rejected because of advertisingIdentifier in Facebook SDK and Flurry SDK

后端 未结 4 590
Happy的楠姐
Happy的楠姐 2020-11-30 01:04

My app was rejected because of advertisingIdentifier in Facebook sdk and Flurry SDK ! I found an occurrence of advertisingIdentifier in the latest

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-30 01:29

    Get the source code from https://github.com/facebook/facebook-ios-sdk , instead of the compiled framework. Just deleting the framework and pasting in the source code should do it.

    Go to FBUtility.m and modify this method:

    + (NSString *)advertiserID {
        NSString *advertiserID = nil;
        Class ASIdentifierManagerClass = [FBDynamicFrameworkLoader loadClass:@"ASIdentifierManager" withFramework:@"AdSupport"];
        if ([ASIdentifierManagerClass class]) {
            ASIdentifierManager *manager = [ASIdentifierManagerClass sharedManager];
            advertiserID = [[manager advertisingIdentifier] UUIDString];
        }
        return advertiserID;
    }
    

    to

    + (NSString *)advertiserID {
       return @"";
    }
    

提交回复
热议问题