With codes below SKStoreProductViewController can present descriptions of an app.
When I touch the "free" button it shows "install app". Then I touch "install app", a progress bar shows inside the app icon. However the progress bar disappear in 2-3 seconds and the app remain uninstalled.
It's my demo app. Does anyone know the reason?
SKStoreProductViewController *skvc = [[SKStoreProductViewController new] autorelease];
skvc.delegate = self;
NSDictionary *dict = [NSDictionary dictionaryWithObject:@"425349261" forKey:SKStoreProductParameterITunesItemIdentifier];
[skvc loadProductWithParameters:dict completionBlock:nil];
[self presentViewController:skvc animated:YES completion:nil];
The problem ist that you don't really connect to the Itunes store instead it's the special sandbox store environment. I had the same problem and you need to have a test account and do the purchases with that one instead of your normal itunes account.
It's all described here:
http://developer.apple.com/library/mac/#documentation/NetworkingInternet/Conceptual/StoreKitGuide/DevelopingwithStoreKit/DevelopingwithStoreKit.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With