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

  • Home
  • SEARCH
  • 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 7065401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:57:06+00:00 2026-05-28T04:57:06+00:00

I am new to in-app purchases. I have successfully implemented and tested code to

  • 0

I am new to in-app purchases. I have successfully implemented and tested code to let user make a purchase within our app.

The question I have is once the user hits purchase my app button, do I set a NSUserDefaults variable to TRUE in my app so that I can unlock all the features that were locked. Meaning I check if that NSUserDefaults is TRUE then show them more stuff.

Is this the best approach to take? What I have noticed is that if user has multiple apple products (iphones/ipads) with the same ID and that purchased app moves through cloud to those other devices then he will have to click on the purchase item button again to “unlock” the features on those other apps. (since I will be setting the NSUserDefaults variable locally and setting it TRUE if purchase was successful or purchase restored) Though he won’t get double charged though its annoying for the user to click on the button again.

Is there a better approach I can take?

OR

Is there a way in code I can check if he had purchased that app ON LAUNCH so that I can set the NSUserDefaults purchased to TRUE.

  • 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-05-28T04:57:07+00:00Added an answer on May 28, 2026 at 4:57 am

    You can use restoreCompletedTransactions method of SKPaymentQueue to restore all the purchases the user has purchased before. However, this method displays an alert to the user for entering his Apple ID and password. So you should not use it at launch. Instead, display a button that the user can tap to restore his purchases.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to test my new in-app purchase code. I have a few items
I have this new app I am creating that will use consumable in-app purchases.
i have implemented the in app purchase in my application and added few in
I have implemented InApp Purchase in my App. These are the steps i have
In our app, we have an in app purchase. The client request a purchase
I have an app that I am about to add in-app purchases. My question
I'd like to create a new Test User for an In-App Purchase service in
I have a new app I'll be working on where I have to generate
Working on a new app and using restful-authentication. I was trying to make it
I have a new app that I made and put in the store yesterday.

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.