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

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top