Guideline 2.5.1 - Performance - Software Requirements Your app uses the “prefs:root=” non-public URL scheme, which is a private entity.
App使用私有Api被拒。原则上App只能跳转到自己到设置页面,app-prefs:root=相关到代码都不允许。
设置URL Types的方式也是不允许的。
即跳转到公开的Api:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
但是如果想要挑战到设置页面,或者蓝牙、wifi等其他页面,就要跳过审核。方法是将你跳转的url转成16进制,然后再转回来。保证代码中不出现app-prefs:root。
下面是跳转到通用的url字符串
+ (NSString *)jumpToSetting {
NSData *encryptString = [[NSData alloc] initWithBytes:(unsigned char []){0x41, 0x70, 0x70, 0x2d, 0x50, 0x72, 0x65, 0x66, 0x73, 0x3a, 0x72, 0x6f, 0x6f, 0x74, 0x3d, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x6c} length:22];
NSString *string = [[NSString alloc] initWithData:encryptString encoding:NSUTF8StringEncoding];
return string;
}
注意length为你的url到字符串的长度,前面是你的url的16进制