Is there a way to detect if there was a purchase after SKStoreProductViewController is presented?

Viewed 250

My app plays songs from the user's music library on their iOS device- it uses SKStoreProductViewController to purchase music and i'm looking to see if there is a way to detect if something was purchased.

I checked the SKStoreProductViewController docs but the method loadProductWithParameters:completionBlock: does not include a way to detect if the product presented was purchased.

Is there a way to figure out if the presented product was purchased?

Maybe registering MPMediaLibrarySyncGenerationDidChangeNotification would do the trick?

0 Answers
Related