We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
App freezes on taping Cancel button during in app purchase confirmation in iOS 7
App freezes on taping Cancel button during in app purchase confirmation in iOS 7
Bug #3843 [Closed]
Redmine issue system is closed, we are using github issue system instead.
This issue was moved to https://github.com/cocos2d/cocos2d-x/issues/8326
Status: | Closed | |
---|---|---|
Start date: | 2014-01-25 | |
Priority: | Low | |
Due date: | 2014-01-25 | |
Assignee: | - | |
% Done: | 0% |
|
Category: | ios | |
Target version: | - |
Hello,
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];
Looking forward to see you earlier response. Thanks