直到几天前,以下URL处理程序重定向用户赠送应用程序:
static NSString * const kAppStoreGiftURL = @"itms-appss://buy.itunes.apple.com/" "WebObjects/MZFinance.woa/wa/giftSongsWizard" "?gift=1&salableAdamId=%u&productType=C&pricingParameter=STDQ&mt=8&ign-mscache=1"; NSString *url = [NSString stringWithFormat:kAppStoreGiftURL, kAppID]; NSLog(@"Opening store with URL: %@", url); [[UIApplication sharedApplication] openURL:[NSURL URLWithString:url]];
但是,似乎现在这会产生以下错误消息openURL
:
仍可通过商店直接赠送应用程序.
Apple是否完全禁用了此功能,或者是否有新的URL可以缓解此问题?