godotengine / godot-ios-plugins

MIT License
126 stars 48 forks source link

InAppStore: no support for paymentQueueRestoreCompletedTransactionsFinished #45

Closed BZ1234567890 closed 1 year ago

BZ1234567890 commented 1 year ago

There is currently no way of knowing when the "restore purchases" operation completed if there are no purchases to restore (e.g., if player never bought any IAPs) or if an error occurred during the restore operation.

That is slightly annoying if you have GUI shown during the restore operation (for example, a progress bar or a spinner), as you don't know when to close it.

It would be nice if InAppStore had support for the paymentQueueRestoreCompletedTransactionsFinished: and paymentQueue:restoreCompletedTransactionsFailedWithError: events which get triggered in the SKPaymentTransactionObserver when restore operation completes or fails. This would provide us with more control over the restore workflow.

BZ1234567890 commented 1 year ago

I see that this pull request would close this issue: https://github.com/godotengine/godot-ios-plugins/pull/42