Note that there are some explanatory texts on larger screens.

plurals
  1. PORestoring In App purchase without 'buy' prompt? Is it possible?
    text
    copied!<p>I currently have my in-app purchase 'restore' button,</p> <p>It <em>does</em> work, but essentially it asks the user mid way through the process to 'buy' the upgrade (just like it would have on a normal in-app) I am worried this will</p> <p>a) be rejected by apple b) scare the user into thinking they are paying again</p> <p>Is there any way I can change it so it has perhaps a different message?</p> <pre><code>-(IBAction)restore:(id)sender {= [[SKPaymentQueue defaultQueue] addTransactionObserver:self]; [[SKPaymentQueue defaultQueue] restoreCompletedTransactions]; UIAlertView *alert; alert = [[[UIAlertView alloc] initWithTitle:@"Restoring Your Purchases, Please Wait..." message:nil delegate:self cancelButtonTitle:nil otherButtonTitles: nil] autorelease]; [alert show]; UIActivityIndicatorView *indicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge]; // Adjust the indicator so it is up a few pixels from the bottom of the alert indicator.center = CGPointMake(alert.bounds.size.width / 2, alert.bounds.size.height - 50); [indicator startAnimating]; [alert addSubview:indicator]; [indicator release]; [alert dismissWithClickedButtonIndex:0 animated:YES]; [[MKStoreManager sharedManager] buyFeature];= } -(void)productPurchased { for (UIView *view in self.view.subviews) { if (view.tag==2000) { [view removeFromSuperview]; } } UIAlertView *alert=[[UIAlertView alloc]initWithTitle:@"Thank you" message:@"Your restore was successful." delegate:self cancelButtonTitle:@"Ok" otherButtonTitles:nil, nil]; [alert show]; [alert release]; } // error restore - (void)failed { for (UIView *view in self.view.subviews) { if (view.tag==2000) { [view removeFromSuperview]; } } UIAlertView *alert=[[UIAlertView alloc]initWithTitle:@"Error" message:@"Your restore has failed." delegate:self cancelButtonTitle:@"Ok" otherButtonTitles:nil, nil]; [alert show]; [alert release]; } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload