应用内购买没有恢复按钮会导致拒绝 [英] No restore button for in app purchase causes rejection

查看:119
本文介绍了应用内购买没有恢复按钮会导致拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用非消费品购买应用程序,它被苹果拒绝,原因是:

I am implementing an application using in app purchase with non-consumables items, it was rejected by apple and the reason is:


我们发现您的应用提供了可以恢复的应用内购买,但它不包含恢复功能,以允许用户恢复之前购买的应用内购买。

We found that your app offers In-App Purchase/s that can be restored but it does not include a "Restore" feature to allow users to restore the previously purchased In-App Purchase/s.

要恢复以前购买的应用程序内购买产品,在点击恢复按钮时提供恢复按钮并启动恢复过程是合适的。

To restore previously purchased In-App Purchase products, it would be appropriate to provide a "Restore" button and initiate the restore process when the "Restore" button is tapped.

有关恢复交易和验证商店收据的更多信息,请参阅

For more information about restoring transactions and verifying store receipts, please refer to the

并且没有链接到参考,我已经实现了:

and there is no link to refer to, I have already implemented the:

- (无效)paymentQueue:(SKPaymentQueue *)队列updatedTransactions:(NSArray *)交易


SKPaymentTransactionStateRestored case。

但我没有实现:

`restoreCompletedTransactions`  or `paymentQueueRestoreCompletedTransactionsFinished`

这些方法是批准应用内购买所必需的,或者确切的问题是什么。

are these methods necessary for the in app purchase to be approved, or what is the exact problem.

谢谢

推荐答案

使用以下内容恢复用户从您的应用中购买的产品ID

Use the following to restore the products ID's that user did purchased from your app

- (void) checkPurchasedItems
{
   [[SKPaymentQueue defaultQueue] restoreCompletedTransactions];
}// Call This Function

//Then this delegate Function Will be fired
- (void) paymentQueueRestoreCompletedTransactionsFinished:(SKPaymentQueue *)queue
{
  purchasedItemIDs = [[NSMutableArray alloc] init];

  NSLog(@"received restored transactions: %i", queue.transactions.count);
  for (SKPaymentTransaction *transaction in queue.transactions)
  {
      NSString *productID = transaction.payment.productIdentifier;
      [purchasedItemIDs addObject:productID];
  }

}

purchaseItemIDs将包含所有产品用户购买的ID ..您可以在完成后点击一个按钮来调用此功能,显示所有这些产品,以便用户再次下载。

the purchasedItemIDs will contain all the product IDs that the user purchased it .. you could put a button to call this function when it finished you show all these products to enable the user to download it again.

这篇关于应用内购买没有恢复按钮会导致拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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