IAP: Gets `paymentQueueRestoreCompletedTransactionsFinished:` a pending callback

Several times I get this callback

- (void)paymentQueueRestoreCompletedTransactionsFinished:(SKPaymentQueue *)queue

Even before I get this

- (void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions

I can’t even tell finishTransaction:. I find this superwoman. I always assumed that paymentQueueRestoreCompletedTransactionsFinished:it would not be launched before I mark each transaction in progress as completed.

Is this the expected behavior?

This is what I found in the documentation

- (void)paymentQueueRestoreCompletedTransactionsFinished:(SKPaymentQueue *)queue DescriptionInforms the supervisor that the payment queue has completed sending the restored transactions. This method is called after all recovery transactions are processed by the payment queue. Your application does not have to do anything in this method.

I'm not sure what that means.

0
source share
1

.

@interface SKPaymentQueue : NSObject
...
// Array of unfinished SKPaymentTransactions.  Only valid while the queue has observers.  Updated asynchronously.
@property(nonatomic, readonly) NSArray *transactions;

@end

@protocol SKPaymentTransactionObserver
// Sent when all transactions from the user purchase history have successfully been added back to the queue.
- (void)paymentQueueRestoreCompletedTransactionsFinished:(SKPaymentQueue *)queue
...
@end

. paymentQueueRestoreCompletedTransactionsFinished StoreKit SKPaymentQueue. -[SKPaymentQueue transactions] .

, .

0

All Articles