Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

purchaseDate

Discussion in 'Unity IAP' started by acr1378, Sep 6, 2017.

  1. acr1378

    acr1378

    Joined:
    Dec 4, 2014
    Posts:
    76
    I am having trouble checking if an auto-renewing subscription is active on Android. On Apple there are two variables: purchaseDate and originalPurchaseDate. The first returns the date the auto-renew cycled, so it returns a new date each time the subscription auto-renews. The second does not.

    My question is about Android. Android receipts only have the purchaseDate field. Does this refer to the "Original Purchase Date" or the date that the subscription auto-renewed (as it does on Apple)?

    Right now the purchaseDate field does not appear to be updating on an auto-renew cycle, but I don't know if that's because the receipt it fetches is just an old receipt, or if the field really refers to the "Original Purchase Date".
     
  2. acr1378

    acr1378

    Joined:
    Dec 4, 2014
    Posts:
    76
    Does anybody know the answer to this?