Penney Wang
Penney Wang

Reputation: 23

queryPurchasesAsync return empty when subscriptions expired

I test to buy subscription in sandbox ,but the subscription canceled and expired when the auto-renew reach 6 times. Then nothing was returned with calling queryPurchasesAsync. I think it would always return the subscription information which had bought ,no matter it was canceled or expired. Does it happen only in sandbox or product environment ? What is the reliable way to get subscription history ?

Upvotes: 0

Views: 72

Answers (1)

Computersmith64
Computersmith64

Reputation: 53

queryPurchasesAsync() will only return non-consumed one-time purchases & active subscriptions. Per this doc queryPurchaseHistory() is deprecated in Billing v7, so it seems the only way to do it in-app is to track the history yourself.

Upvotes: 0

Related Questions