【问题标题】:InApp not working with iOs 5.1.1InApp 不适用于 iOS 5.1.1
【发布时间】:2012-08-24 02:37:04
【问题描述】:

我的应用有一个应用内购买,它在我的装有 iOS 5.0 的 ipad 上运行良好。

现在,在使用 iOS 5.1.1 进行测试时,相同的版本在应用内购买“无法连接到 iTunes Store”时出现错误。在调试时,我成功获取了产品列表,但在尝试购买该产品时出现错误...

SKPayment *payment = [SKPayment paymentWithProductIdentifier:productIdentifier];

是否有人在购买应用内遇到此类错误?任何建议都会有很大帮助。 谢谢。

【问题讨论】:

    标签: ios in-app-purchase itunes-store


    【解决方案1】:

    这个解决方案对我有用:-

    转到设置--->常规--->重置--->重置所有设置,它工作正常。

    【讨论】:

      【解决方案2】:

      您正在使用 paymentWithProductIdentifier: 在 iOS 5.0 中已弃用,也许这就是问题所在。 尝试使用 :paymentWithProduct: 代替。

      "paymentWithProductIdentifier: 返回具有指定产品标识符的新付款。 (在 iOS 5.0 中已弃用。)”http://developer.apple.com/library/ios/documentation/StoreKit/Reference/StoreKit_Collection/StoreKit_Collection.pdf

      【讨论】:

      • 我会尝试使用 paymentWithProduct: 但我的应用在 iPad 1 上的 iOS 5.1.1 上运行良好,但它不仅在 iPad 2 之后的版本上运行。
      猜你喜欢
      • 1970-01-01
      • 2017-09-17
      • 2020-11-14
      • 1970-01-01
      • 2018-09-01
      • 2016-06-29
      • 1970-01-01
      • 2014-04-06
      • 2018-11-27
      相关资源
      最近更新 更多