Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In App Purchase not working on Xcode 5, iOS 7 simulator

It appears that In App Purchase on the simulator has again been broken. We are able to successfully submit an SKProduct, but we NEVER get the appropriate callback.

Any insight from others would be great...

[[SKPaymentQueue defaultQueue] addTransactionObserver:self];
[[SKPaymentQueue defaultQueue] addPayment:skPayment];

No response from the observer delegate callback.

like image 427
MobileVet Avatar asked Sep 24 '13 20:09

MobileVet


2 Answers

According to the release notes for Xcode 5.0:

StoreKit (In-App purchases) will not work in the Simulator. 13962338

https://developer.apple.com/library/prerelease/ios/releasenotes/DeveloperTools/RN-Xcode/index.html#//apple_ref/doc/uid/TP40001051

The simulator documentation doesn't list storekit as being one of the API's that is not available so maybe it is temporary?

https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/iOS_Simulator_Guide/TestingontheiOSSimulator/TestingontheiOSSimulator.html#//apple_ref/doc/uid/TP40012848-CH4-SW15

like image 126
Matt Avatar answered Sep 21 '22 15:09

Matt


Well its working for iOS 6 but not iOS 7. Xcode 5 supports in App purchases for iOS 6 only. Have a happy coding. :)

like image 40
Pratik Somaiya Avatar answered Sep 21 '22 15:09

Pratik Somaiya