直到几天前,以下用于重定向用户以赠送应用程序的 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 可以缓解此问题?
最佳答案
旧的 Gift URL 未记录在案,Apple 现在已停止支持它。我注意到它在 2013 年 12 月的某个时候停止工作。据我所知,Apple 尚未就是否可能再次提供任何公开评论。
我使用提醒 View 来指导用户如何赠送礼物。在 Apple 恢复此功能之前,您无能为力。
// Gift app
UIAlertView *giftAlertView = [[UIAlertView alloc] initWithTitle:@"Gift this App"
message:@"Give a copy of this app as a gift?\n\nTap Share >
Gift\non the App Store page"
delegate:self
cancelButtonTitle:@"I'll think about it"
otherButtonTitles:@"OK", nil];
[giftAlertView show];
关于ios - 从应用程序内部发送用户赠送应用程序不再有效?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20538751/