用户发送到礼物的应用程序内的应用程序不工作了? [英] Sending a user to gift an app from inside an app doesn't work anymore?

查看:546
本文介绍了用户发送到礼物的应用程序内的应用程序不工作了?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

直到前几天,以下URL处理程序将用户重定向送礼的应用程序的工作:

Up until a few days ago, the following URL handler to redirect a user for gifting an app worked:

  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

透过商店直接赠与的应用程序仍然可用。

Gifting an app directly via the store is still available.

苹果没有完全禁用此功能,还是有其减轻这个问题一个新的网址是什么?

Did Apple disable this feature completely, or is there a new URL that mitigates this issue?

推荐答案

旧礼品网址是无证和苹果现在已经不再支持它。我注意到它停在2013年12月的某个时候工作就我所知,苹果还没有给出任何公开征求意见,如果它永远是可能的一次。

The old Gift URL was undocumented and Apple has stopped supporting it now. I noticed it stopped working sometime in December 2013. To my knowledge, Apple has not given any public comment if it will ever be possible again.

我已经诉诸使用警报,以便指导如何给礼物的用户。有没有多少人可以做,直到苹果带回了这个功能。

I've resorted to using an alert view to instruct users about how to give a gift. There isn't much else you can do until Apple brings back this functionality.

// 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];

这篇关于用户发送到礼物的应用程序内的应用程序不工作了?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆