Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

[Solved] Know if Ios subscription was canceled in Unity IAP

Discussion in 'Unity IAP' started by lucasrferreira, Nov 8, 2016.

Thread Status:
Not open for further replies.
  1. lucasrferreira

    lucasrferreira

    Joined:
    May 16, 2016
    Posts:
    1
    I am developing a game for IOS and Android and its have In App Purchase.

    I'm using product.hasReceipt to verify if the subscription is still active and that works well on Android, but in IOS its don't.

    What i am doing is: if product.hasReceipt is true, the user has the subscription and unlock the content, if its false dont unlock or lock the content. But on Ios, after the first buy its never more became false even if the subscription was cancelled days before.

    Sorry my poor English and I hope someone help me.
     
  2. Baroni

    Baroni

    Joined:
    Aug 20, 2010
    Posts:
    3,152
    Subscriptions can't be verified client-side. You need a server where you send the receipt to, which then verifies the expiration and cancellation date with Apple and returns the results back to your app. Also on iOS, there is only one combined app receipt for all products, not single receipts like on Google Play.

    We are offering a service for our Simple IAP System asset that does server-side receipt verification.
     
    ap-unity likes this.
Thread Status:
Not open for further replies.