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 8453169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:41:57+00:00 2026-06-10T11:41:57+00:00

I tried to search about that problem, but didnt get many information. I just

  • 0

I tried to search about that problem, but didnt get many information. I just know that:

– Restore in the first time user install app or when user reinstall when they uninstall/wipe data.

– Restore transaction just apply for managed-product.

I tried to read Dungeon Example, there are few line of code about restore transaction like: when to call restore request, when to get restore respone… but i dont know:

– How to get return information? (like item id that you have bought)

Someone please explain once again about Process of Restore Transaction in In-App billing.

Thanks you so much!!!

Edited: so sorry, I did not work in Android from long time, and right now I dont know what is right answer for this question, so I cant mark answer 😛

  • 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-10T11:41:59+00:00Added an answer on June 10, 2026 at 11:41 am

    The typical flow is as follows:

    1. User installs your app.

    2. On first load of your app, you check if you need to restore
      purchases.

    3. If you do, send a RESTORE_TRANSACTION synchronous request to Google.

    4. Google will respond with a acknowlegment response to your
      RESTORE_TRANSACTION request. (This is only an acknowlegement that
      they received your request.)

    5. At this point, you should mark that you had already sent a restore request to Google and no further restores needs to be sent from the app.

    6. Now asynchronously Google will start sending a ‘PURCHASE_STATE_CHANGED’ event to your app for each in-app purchase the user has previously purchased. This call is the same as what Google would had sent if the user had made that purchase for the first time.

    7. Since it’s the same call, your app would pick up the event and handled it normally as if the user has just purchased the in-app product (thereby “restoring” the purchased feature).

    In regard to steps 2 and 5, what I’ve done for my app is to keep a SharedPreference value called ‘APP_INITIALISED’ that defaults to false. Everytime my app starts up, if ‘APP_INITIALISED’ is false, I tell Google to RESTORE_TRANSACTION (step 2) then I set APP_INITIALISED to true (step 5).

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

Sidebar

Related Questions

i tried to search this but was not able to get any proper help.I
Hey, I think I'm going about this the wrong way, but have tried many
I tried to search 2 days about how to do the paging scroll in
Tried to search for this online and didn't get very far, so I'm asking
I tried to search SO but couldn't find close answers. What I have is
I tried to search for a JavaScript reference, but there's none available. The best
I have tried to search for an answer in google, and this site, but
I've tried to search for a solution for this, but have had no joy:
I saw that there's many, many thread about this on the web, also in
I have a question about what is probably a gems problem, but may be

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.