cobub / razor

Cobub Razor - Open Source Mobile Analytics Solution

Home Page:http://www.cobub.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

我在代码里发现了这个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;
}
}
}

commented

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;
}

commented

please refer to the latest code.