mattt/CargoBay — pull request #64 by mureev (2014-05-21 07:57:57+00:00)
Title: SKProductsRequest releasing too fast

I got an issue in my app that I can reproduce in AppStore and in Xcode. On first app launch everything works fine, but starting from second one there is no any callback from productsWithIdentifiers method.

The core of this issue is that SKProductsRequest deallocated before it started and not of any callbacks in CargoBayProductRequestDelegate never called. This issue also described on stackoverflow.

My fix is retain request object for 2 seconds. Works in debug with XCode and in AppStore released version.