ios - 从应用程序内部发送用户赠送应用程序不再有效?

标签 ios app-store openurl

直到几天前,以下用于重定向用户以赠送应用程序的 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 之后产生以下错误消息:

App store app after redirection

仍然可以直接通过商店赠送应用。

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/

相关文章:

ios - iOS中的进程间通信

ios - 在电话 : URIs in iOS 5+ 中发送 # & *

ios - 带有凭据的 OpenUrl 和 itms-services

ios - 如何使用 NSNumbers 在 switch 语句中设置 NSDate

ios - Unity iOS OpenGL 应用崩溃

ios - App Store Missing Purpose String in Info.plist 错误

iphone - 无法将iOS项目发送到App Store

ios - 将 UIButton 添加到 AVCaptureVideoPreviewLayer?

ios - ITMS-90086 "Missing 64-bit support"将 Adob​​e Air 应用程序上传到 iTunes Connect 时出错

ios - 获取从苹果应用商店下载我的 ios 应用的用户详细信息