SKStoreProductViewController can silently fail

Originator:joshua.j.mckinnon
Number:rdar://14126680 Date Originated:
Status:Open Resolved:
Product:iPhone SDK Product Version:6.1
Classification:UI Reproducible:Always
 
Summary:
The -loadProductWithParameters method of SKStoreProductViewController silently fails when the productParams dictionary contains a product that is not available.

Steps to Reproduce:
	SKStoreProductViewController *storeViewController = [[SKStoreProductViewController alloc] init];
	[storeViewController setDelegate:self];
	NSDictionary *productParams = @{ SKStoreProductParameterITunesItemIdentifier : @"335546638" };
	[storeViewController loadProductWithParameters:productParams completionBlock:^(BOOL result, NSError *error) {
…
	}];

Expected Results:
I would expect the completion block to execute and an NSError object to be returned in *error

Actual Results:
The completion block does not execute, and I have no way of determining the cause of the problem.

Regression:

Notes:
SKStoreProductParameterITunesItemIdentifier specified above is for a product that, at the time of filing this bug report, is not available for download (the product exists but is Removed From Sale). When you attempt to reproduce this issue, that item may exist and you will need to replace it with another ID.

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!