Reputation: 601
I'm implementing the in-app purchase of the files stored on my server.
The idea is to send verified list (like in RESTORE_TRANSACTIONS returns) to the server and It returns available items that user bought. But the documentation says:
"Note: You should use the RESTORE_TRANSACTIONS request type only when your application is installed for the first time on a device or when your application has been removed from a device and reinstalled."
So I'm guessing that the constant usage of the RESTORE_TRANSACTIONS is a bad idea.
But there's no more requests that returns full list. Keeping purchases in the db like in Dungeons example is not secure.
Is there exist another way to get verified list of purchases or maybe RESTORE_TRANSACTIONS usage is appropriate?
Upvotes: 0
Views: 426
Reputation: 52956
If you use RESTORE_TRANSACTIONS too frequently, that account might be temporarily blocked. So only use it on first run, or periodically. If you want to check for items with a server each time the app runs, use unmanaged items and have your server keep track of each user's items. Then you can call home as often as you want.
As for purchases in a local db not being secure, it is only an issue on rooted devices, and you can obfuscate your database to that adding/changing items is not straightforward.
Upvotes: 1