Reputation: 2217
In Android Documentation there is this recommendation:
Security Recommendation: It’s good practice to pass in a string that helps your application to identify the user who made the purchase, so that you can later verify that this is a legitimate purchase by that user. For consumable items, you can use a randomly generated string, but for non-consumable items you should use a string that uniquely identifies the user.
What are the best practices to generate this string?
Upvotes: 2
Views: 652
Reputation: 5347
When the app is on its own, the best approach is to
This way, you can
The following vulnerabilities remain:
The only way to further improve security is to use a server-based approach for LVL/IAB validation.
Upvotes: 1