iphone - restoreCompletedTransactions broken? -
is restorecompletedtransactions broken in sdk 4.3 ?
i trying restore auto-renewable subscription. not resulting in callback updatedtransactions. here code.
{ .... [appdelegate.inapp loadstore]; [[skpaymentqueue defaultqueue] restorecompletedtransactions]; .... } expecting callback updatedtransactions, not receive it.
- (void)paymentqueue:(skpaymentqueue *)queue updatedtransactions:(nsarray *)transactions { nslog(@"in updatedtransactions, transaction.transactionstate"); (skpaymenttransaction *transaction in transactions) { switch (transaction.transactionstate) { ... ... case skpaymenttransactionstaterestored: nslog(@"in updatedtransactions, skpaymenttransactionstaterestored"); [self restoretransaction:transaction]; break; } } } but receive call @ end.
-(void) paymentqueuerestorecompletedtransactionsfinished:(skpaymentqueue *)queue { }
this can still(1) happen if you're testing in sandbox environment , test user broken. create new test user in itunes connect, , try again.
it's not entirely clear makes test users go bad; gather, using them once in non-sandbox environment can this, there may other reasons well.
(1) xcode 4.3.1, ios sdk 5.1
Comments
Post a Comment