SKStoreProductViewControllerDelegate should provide the dismiss reason

Originator:daniel.barden
Number:rdar://17015056 Date Originated:23-May-2014
Status:Open Resolved:
Product:iOS SDK Product Version:6.0.0 on
Classification:Enhancement Reproducible:Always
 
Summary:
When SKStoreProductViewController is dismissed, there is the possibility to go to the App Store App: http://cl.ly/image/0P1z0h1v252N

On the delegate method `productViewControllerDidFinish:`, it provides no information if the user dismissed using Cancel or Store.

This information is pretty useful in cases when you need to prepare your app to go to background due to following an App Store link.

Steps to Reproduce:
1. Open SKStoreProductViewController and register a delegate
2. Close the SKStoreProductViewController (either via Cancel or Store)


Expected Results:
The `productViewControllerDidFinish:` provides a way to differentiate between 'Cancel' and 'Store'

Actual Results:
The `productViewControllerDidFinish:` method provides the same data for both cases.

Version:
6.0 on

Notes:


Configuration:


Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!