Search code examples
androidin-app-billingandroid-billing

purchaseTime in subscription with in app billing


I am using subscription for the inapp billing and I was wondering about the purchase time in this

Purchase myPurchase = inventory.getPurchase(MY_SKY);
myPurchase.getPurchaseTime();

What would be the purchase time when subscription is used? Would it be the first date the user is subscribed to the product or is it the date of the renewal of the most recent payment?

Please help Thank you


Solution

  • My experience is that the purchase time is always the date from the first time the user made the purchase. It does not get updated when the subscription is renewed.

    In my app I tell the user when the next renewal date is coming up. So I just add all the months since the purchaseTime date and present that to the user.