I only call the following code once
[[SKPaymentQueue defaultQueue] addTransactionObserver:self];but on iOS 10.0.1 sometimes I can get twice notify in
- (void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactionsto be noted, not two transactions at the same time, but get one then the other in the following 2~3 seconds.
Followd by my log,
// the first time get updateTransactions
2017-03-22 14:22:31.519416 Log get update transactions in paymentQueue:updateTransactions:
(
"<SKPaymentTransaction: 0x170017d30>"
)
2017-03-22 14:22:31.697127 Log Transaction 1000000283812553 of product com.tencent.pay.test1 has been finished
// the second time get updateTransactions
2017-03-22 14:22:33.992336 Log get update transactions in paymentQueue:updateTransactions:
(
"<SKPaymentTransaction: 0x17001b130>"
)
2017-03-22 14:22:34.073377 Log Transaction 1000000283812553 of product com.tencent.pay.test1 has been finishedWe can notice that ,we got different SKPaymentTransaction objects, which have different memory addresses, but the transactionIdentifier and productIdentifier is the same, even after I've called finishTransaction: after I've got the first notify.
Why is that ? Anyone has the same problem here?