我在代码里发现了这个ASIdentifierManager这个会引起苹果审核拒掉app么
yupliang opened this issue · comments
+(NSString *)getUMSUDID
{
NSString * udidInKeyChain = [SFHFKeychainUtils getPasswordForUsername:@"UMSAgentUDID" andServiceName:@"UMSAgent" error:nil];
if(udidInKeyChain && ![udidInKeyChain isEqualToString:@""])
{
return udidInKeyChain;
}
else
{
NSString *idfa = [[[ASIdentifierManager sharedManager] advertisingIdentifier] UUIDString];
if(idfa && ![idfa isEqualToString:@""])
{
[SFHFKeychainUtils storeUsername:@"UMSAgentUDID" andPassword:idfa forServiceName:@"UMSAgent" updateExisting:NO error:nil];
return idfa;
}
else
{
NSString *openUDID = [UMS_OpenUDID value];
[SFHFKeychainUtils storeUsername:@"UMSAgentUDID" andPassword:openUDID forServiceName:@"UMSAgent" updateExisting:NO error:nil];
return openUDID;
}
}
}
If there're ads in your app, it should be OK. If not, you can remove the codes using ASIdentifierManager.
do you mean delete this part directly ?
NSString *idfa = [[[ASIdentifierManager sharedManager] advertisingIdentifier] UUIDString];
if(idfa && ![idfa isEqualToString:@""])
{
[SFHFKeychainUtils storeUsername:@"UMSAgentUDID" andPassword:idfa forServiceName:@"UMSAgent" updateExisting:NO error:nil];
return idfa;
}
please refer to the latest code.