Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SKPaymentQueue defaultQueue finishTransaction: not finishing transaction

We have two IAPs in our app that purchase Non-Renewing subscriptions.

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

is being called correctly and during:

- (void) CompleteTransaction:(SKPaymentTransaction*)tran

we are calling:

[[SKPaymentQueue defaultQueue] finishTransaction: tran]; 

We can successfully purchase either of the subscriptions once with our test account.

Yet when we try to repurchase the items, to test when you subscription expires, we get this AlertView:

"You've Already purchased this in-app purchase but it hasn't been downloaded"

We are in Xcode 4.2 on the iOS 5 sdk/iOS 4.1 deployment target.

UPDATE:

Looks like this is a bug in iOS 5.0.1 on the device.

I am able to re-purchase the IAP items on an iPod Touch running iOS 4.1. I can build the app for SDK 4.1, 4.3 or 5.0 and it still works. However, if I build the app for SDK 4.1, 4.3 or 5.0 and try to run on my iOS 5.0.1 device, it never works.

This is is error from the iOS 5.0.1 device:

Failure:Error Domain=SKErrorDomain Code=2 "Cannot connect to iTunes Store" UserInfo=0x1f90f0 {NSLocalizedDescription=Cannot connect to iTunes Store}
like image 537
Miriam H. Avatar asked Feb 10 '26 16:02

Miriam H.


1 Answers

Apple confirmed this bug. I submitted a bug report and had a back and forth with Apple Engineer.

like image 122
Miriam H. Avatar answered Feb 13 '26 12:02

Miriam H.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!