Reputation: 1318
I've got an app that register a database for the user if he/she signs up for a auto-renewable subscription.
If user have made the purchase and the app crash or server is offline so user is not able to register the database. User need to be able to register the database later.
So question is how do i "restore" a transaction that haven't called this
[[SKPaymentQueue defaultQueue] finishTransaction: transaction];
If i restart the app and prints this i will get an empty array.
[[SKPaymentQueue defaultQueue] transactions];
Upvotes: 1
Views: 781
Reputation: 118781
You don't have to do anything. If you didn't get a chance to call -finishTransaction:
before the app closed, then you'll be passed the transaction again next time you add yourself as an observer of the payment queue.
Upvotes: 3