I've got a general question regarding in-app billing and checking strategics:
I have several apps and I would like to offer them for a trial time with full features (14 days) and then charge a fee to use it. I would like to follow the http://developer.android.com/guide/market/billing/billing_best_practices.html and check the signature on my own SQL server. There are good examples, see Android in-app purchase server signature verification using php OpenSSL
My Idea is the following, (correct me if this is not possible):
- start App and contact to google server to obtain user ID (account which installed the app from google Play
- with that ID contact my SQL server (sending ID and App name), if not existing create entry with date in order to check Trial period, and obtain Public Key, trial period and so on
- with the Public Key contact google Server and check state of inapp-purchases for that user
- update the app according to google answer (full features, trial period valid/expired)
Is that a good approach?
Are there some good examples to do this? I looked up the forum, there are approaches but, not that one.
Many thanks,