j3k0 / cordova-plugin-purchase

In-App Purchase for Cordova on iOS, Android and Windows
https://purchase.cordova.fovea.cc
1.29k stars 530 forks source link

Appstore Transaction.isAcknowledged for non-consumable products #1453

Open DavidTalevski opened 9 months ago

DavidTalevski commented 9 months ago

Is there a way to mimic the behavior of Play Store transactions with Transaction.isAcknowledged when dealing with App Store transactions? In my case when I don't finish a non-consumable transaction it has the same state as when I finish a non-consumable transaction. This makes it impossible to distinguish them at app launch, meaning we can't know whether the transaction has been finished previously or not. The way I implemented is that when you buy a product, a prompt is given to the user making them press a button to claim their rewards, when they press a button the transaction is finished. This makes it easy to know, at app restart, whether the product rewards have been given out to the user and the transaction finished, but I can't seem to replicate this on iOS since I am missing the isAcknowledged flag. Is there any way to create this same behavior on iOS?

j3k0 commented 8 months ago

Yes, there's no such thing on iOS unfortunately.