Projects > cpp > Issues > Bug #3843

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

App freezes on taping Cancel button during in app purchase confirmation in iOS 7

Bug #3843 [Closed]
afraziz 2014-01-25 07:29 . Updated over 9 years ago


I thank you in advance for your help to fix issue which i m not able to fix since yesterday. My app was working fine for iOS 6 but when iOS 7 came in i am experiencing this issue.
step 1. Press Buy button
step 2. In pop's to buy, there cancel.
step 3. It takes user to game again. Then again press buy that freeze game.

additional information is that when i am debugging the game in XCode, i follow above mentioned steps app freezes. At that stage when i Stop the debug from XCode i see the spring board and the pop up from the store kit which asks for the confirmation to buy.

The code to perform in app in app purchase is very simple and it had no problem in iOS 6

if ([SKPaymentQueue canMakePayments]) {
SKMutablePayment *payment = [[SKMutablePayment alloc] init] ;
payment.productIdentifier = productId;
payment.quantity = 1;
[[SKPaymentQueue defaultQueue] addPayment:payment];

} else {
    NSLog(@"Can't make purchases. Parental control is probably enabled.");

Looking forward to see you earlier response. Thanks 2014-10-08 02:58

Redmine issue system is closed, we are using github issue system instead.

This issue was moved to

Atom PDF

Start date:2014-01-25
Due date:2014-01-25
% Done:


Target version:-