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

IAP Ios subscription check from server.

Discussion in 'Unity Analytics' started by KrptonCollector, Jun 6, 2016.

  1. KrptonCollector

    KrptonCollector

    Joined:
    May 2, 2015
    Posts:
    4
    Hi, i havent have made any ios purchases so please pardon my noobness, I wish to have
    Automatically Renewable Subscriptions. I have read that its a better thing to check subscription details of a user from server rather than app it self so. So once the purchase has been completed what details shall be used to query apple for subscriptions(we have multiple here) and what details shall be sent to my server so i can check for user subscriptions.
     
  2. Banderous

    Banderous

    Joined:
    Dec 25, 2011
    Posts:
    669
    KrptonCollector and erika_d like this.
  3. KrptonCollector

    KrptonCollector

    Joined:
    May 2, 2015
    Posts:
    4
    hi @Banderous thanks for the reply i read post i think it was from you to use payload to query apple server i get response that contains a lot of deatils like http://pastebin.com/pwLvtwpe. Does that looks correct
     
  4. Banderous

    Banderous

    Joined:
    Dec 25, 2011
    Posts:
    669
    Apple document the receipt format here - you can use that information to analyse the response from Apple's API and decide if the user owns a valid subscription.
     
    erika_d likes this.