Snake
Snake

Reputation: 14648

in app billing: How to find expiration date of user subscription

I am adding a subscription feature to my app. Is there any way I can know the expiry date of the current subscription?

I searched everywhere and cant seem to find the answer

Thanks you

Upvotes: 2

Views: 3229

Answers (1)

Avadhani Y
Avadhani Y

Reputation: 7626

Getting the expiration date for subscriptions is only available through the Google Play Android Develop HTTP-based API. You can always calculate the expiration date using theAIDL for subscriptions. If you request RESTORE_TRANSACTIONS (assuming you have no previous local data) you'll get the purchase date and the current state of the the subscription and a couple of other data.

Upvotes: 3

Related Questions