IAPs are being restoring when they have not yet been purchased yet

后端 未结 1 1328
栀梦
栀梦 2021-01-26 15:44

When the user calls restorePurchases(), the non-consumable com.premium is restored even thought they do not own it. Here are the functions that are responsible for the restoring

1条回答
  •  情歌与酒
    2021-01-26 16:20

    You should not update any purchase status in paymentQueueRestoreCompletedTransactionsFinished. This function just lets you know that the restoration process has completed. You could use this to update your UI or display an alert or something.

    The restoration process delivers the transactions to be restored to the updatedTransactions function where you handle the .restored state in the same way that you handle the .purchased state.

    Essentially "restore" just replays the purchase transaction process for non-consumable and auto-renewing subscription purchase types.

    0 讨论(0)
提交回复
热议问题