Reverse Callbacks for Changing Subscription Status in Android Applications

I am writing an application that will support subscriptions in the application. Subscriptions will allow my users to use a number of services and benefits outside the Android world. I know that I can use the Google Play Developer API to request subscription status, but due to the nature of the services offered and the benefits, this is not very convenient. I was wondering if there is a way to get a notification about the status of a subscription when it changes. Something like a web hook, for example.

+4
source share
1 answer

I wanted to post a comment in response to yours, but apparently it was too long. In addition to this, this is also a kind of answer to your question, so I thought it would be nice to just post it as an answer instead. Perhaps this even solves your problem.

So, regarding your comment. You do not have to do this. Now I do not know your system requirements, but I will just share mine and hope this helps you.

Save Usersand Subscriptionsyour server (database table). Column check_atin the table Subscriptionsexcept renew_at. Suppose a user has a monthly subscription created on January 1. On this first day, you call your Android server after the purchase is completed, save the subscription information, and then set it renew_atas February 1 andcheck_at 4 , , 3 Google Play . , 1 3 , , 1-. , 4-, API Google Play . - 1 4 . 4- , . , . , API, , , . , 4-, . - .

webhooks. , - , , .

, - .

+6

All Articles