Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8129985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T08:31:19+00:00 2026-06-06T08:31:19+00:00

I got rejected by Apple with a message saying: … Additionally, we found that

  • 0

I got rejected by Apple with a message saying:

… Additionally, we found that while your app offers In-App Purchase(s)
that can be restored, it does not include the required “Restore”
feature to allow users to restore the previously purchased In-App
Purchase(s), as specified in Restoring Transactions section of the
In-App Purchase Programming Guide:

“…if your application supports product types that must be
restorable, you must include an interface that allows users to restore
these purchases. This interface allows a user to add the product to
other devices or, if the original device was wiped, to restore the
transaction on the original device.”

To restore previously purchased In-App Purchase products, it would be
appropriate to provide a “Restore” button and initiate the restore
process when the “Restore” button is tapped by the user.

For more information about restoring transactions and verifying store
receipt, please refer to the In-App Purchase Programming Guide.
…

And I found this page, and I followed the sample code , but after I called

- (void) checkPurchasedItems{
   [[SKPaymentQueue defaultQueue] restoreCompletedTransactions];
}

another delegate was not fired!

- (void) paymentQueueRestoreCompletedTransactionsFinished:(SKPaymentQueue *)queue

It only popups an alert view, to let you enter your Apple ID … and nothing happened?

I set a break point, but it wouldn’t stop as the example said.

Any ideas on what’s wrong with my code?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T08:31:21+00:00Added an answer on June 6, 2026 at 8:31 am

    In addition to adding restoreCompletedTransactions, you need to handle how your iaps are actually restored to the user and how the content is provided to the user.

    Basically, you need to recall the way you provide the item to your user when they originally purchased it.

    Here is a good tutorial.

    For example, this is how I restore products in one of my apps.

    Restore Transaction

    - (void)restoreTransaction:(SKPaymentTransaction *)transaction
    {
        isRestoring = YES;
    
        [self recordTransaction: transaction];
    
        /* This is where I provide the content to the user: */
        [self provideContent: transaction.originalTransaction.payment.productIdentifier];
    
        [[SKPaymentQueue defaultQueue] finishTransaction: transaction];
    }
    

    Transaction Completed

    - (void)completeTransaction:(SKPaymentTransaction *)transaction
    {
        [self recordTransaction: transaction];
        [self provideContent: transaction.payment.productIdentifier];
        [[SKPaymentQueue defaultQueue] finishTransaction: transaction];
    }
    

    Payment Queue

    - (void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions
    {
        for (SKPaymentTransaction *transaction in transactions)
        {
            switch (transaction.transactionState)
            {
                case SKPaymentTransactionStatePurchased:
                    [self completeTransaction:transaction];
                    break;
                case SKPaymentTransactionStateFailed:
                    if (transaction.error.code == SKErrorPaymentCancelled) {
                        /// user has cancelled
                        [[NSNotificationCenter defaultCenter] postNotificationName:@"hideRestoring" object:nil];
                    }
                    [self failedTransaction:transaction];
                    break;
                case SKPaymentTransactionStateRestored:
                    [self restoreTransaction:transaction];
                default:
                    break;
            }
        }
    }
    

    Provide the Content

    - (void)provideContent:(NSString *)productIdentifier
    {
        int index;
    
        NSMutableDictionary * purchased = [NSMutableDictionary dictionaryWithContentsOfFile:EXTRAS_PATH];
    
        NSArray * availableProducts = [NSArray arrayWithContentsOfURL:[NSURL URLWithString:SCANNER_IN_APP_PURCHASES]];
    
        if ( isRestoring )
        {
            for ( index = 0; index < [availableProducts count]; index++ )
            {
                //NSLog(@"productIdentifier: %@",productIdentifier);
                //NSLog(@"Product: %@",[availableProducts objectAtIndex:index]);
    
                if ( [productIdentifier isEqualToString:[[availableProducts objectAtIndex:index] objectForKey:@"BundleID"]] )
                {
                    [purchased setObject:[availableProducts objectAtIndex:index] forKey:productIdentifier];
    
                    [purchased writeToFile:EXTRAS_PATH atomically:YES];
    
                    [_purchasedProducts addObject:productIdentifier];
                }
            }
        }
        else
        {
            index = [[[NSUserDefaults standardUserDefaults] objectForKey:@"kTempProductPurchasingIndex"] intValue];
    
            if ( [productIdentifier isEqualToString:[[availableProducts objectAtIndex:index] objectForKey:@"BundleID"]] )
            {
                [purchased setObject:[availableProducts objectAtIndex:index] forKey:productIdentifier];
    
                [purchased writeToFile:EXTRAS_PATH atomically:YES];
    
                [_purchasedProducts addObject:productIdentifier];
            }
        }
    
        [[NSNotificationCenter defaultCenter] postNotificationName:kProductPurchasedNotification object:productIdentifier];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My app just got rejected ;-( for the following reason: "We found that your
My iOS app has been rejected and I got the following message from Apple:
My app just got rejected by Apple with the following reason: 2.23 We found
My app got rejected by Apple three times, all with the same rejection letter,
I've just got my app rejected on the Apple App Store because my In-App
I've got rejected my recent update on iPhone app and it says: When file
My app got rejected for not setting the do not back up attribute to
Got this error message while trying to load view: The model item passed into
Got a seg fault from my memcpy that gdb can't give me anything else
Today one of our app got rejected due to email button for enquiries and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.