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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:08:54+00:00 2026-06-09T21:08:54+00:00

YES, I’ve read all the docs @ developer.android.com and I do understand it all

  • 0

YES, I’ve read all the docs @ developer.android.com and I do understand it all with one basic exception – what it was introduced for.

Since all order responses from Google Play come signed by inaccessible-by-anyone private key and are being verified by paired public key (in my case on external server, so it is also inaccessible for third person) there’s simply (almost) no way to spoof.

All those nonces are just redundant way of securing the purchases. And what’s more, the docs say nothing about the situation, when:

  1. I purchase an item;
  2. Generate nonce and send it to Google Play;
  3. Have a crash, so all my known nonces are lost;
  4. Have my app restarted and got callback from Google Play;
  5. …And reject this call due to having not recognized nonce!

In described above situation user pays for an item and never gets it, what it’s shameful. Of course I can store nonces in some file and re-read it when my app gets back, but it violates all the principles for nonces.

IMHO someone just said “Hey, the verification process is too simple, let’s add something more with randomness, it’s gonna be way more cool!”.
So someone did.

Or, would you open my mind to some other use-case am I missing?
Otherwise I’m removing whole nonces part from 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-09T21:08:55+00:00Added an answer on June 9, 2026 at 9:08 pm

    You don’t need to store the nonce ‘to disk’ to account for an app crash.

    When your app crashes yes you will lose your list of known nonces. However when your app restarts and you receive an IN_APP_NOTIFY you then have to do another GET_PURCHASE_INFORMATION when you do this GET_PURCHASE_INFORMATION you will generate a new nonce and add it to the list known nonces.

    What you have to remember is the nonce is one per GET_PURCHASE_INFORMATION (which returns you multiple purchased items) not one nonce per item that is bought.

    AS you’ve said you’ve implemented your own way to avoid Replay Attacks, but using a nonce is once such secure method

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

Sidebar

Related Questions

Yes, I read SIMD code runs slower than scalar code . No, it's not
Yes, I've read the countless questions regarding the very same problem. My code is
Yes, I am having issues with this very basic (or so it seems) thing.
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
Yes, I can't. It seems weird ostream has no close, since istream can detect
Yes, I understand that JavaScript doesn't have classes per se, so I'll just throw
Yes I read Utility for downloading artifacts from maven repo without mvn/poms and other
Yes, I have seen the other questions and i have read through them and
Yes I want to read a simple a logfile into a TStringList and that
yes this is one of my homework projects - to implement a Circular Linked

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.