Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4242028
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T03:23:15+00:00 2026-05-21T03:23:15+00:00

Sorry for the millionth question about iTunes subscriptions, but I still have a few

  • 0

Sorry for the millionth question about iTunes subscriptions, but I still have a few doubts.

Basically I’m implementing auto-renewable subscriptions in my app and I want to make sure I got it right. Here’s a list of steps to take that I came up with:

  • whenever an user buys a subscription, send the receipt to the server to validate it
    • if the receipt is valid, save it on the database
  • on application load, ask the server if a receipt for this UDID exists (this is to figure out if the user has a valid subscription)
    • if so, check if a new item has been added on the store in a date range from the subscription start date to the expire date
      • if any, notify the user about those items in some way and mark them as freely downloadable

Are these steps correct? And if so, why does the Apple doc say:

In most cases, your iOS client application should not need to change. In fact, your client application is now made simpler, as you can use the same code to recover auto-renewable subscriptions as you do to recover nonconsumable products. This is described in “Restoring Transactions.”Your application receives a separate transaction for each period of time where the subscription was renewed; your application should verify each receipt separately.

To me it looks like this needs some code to handle all the various cases I mentioned, instead. Or I’m totally wrong about it. Am I?

Plus, how do I know about the subscription expiration date? I can’t find a way to get this information anywhere. Am I supposed to save this on my own database?

Update:

I’ve figured out a few things since I posted this question. Feel free to correct me if I’m wrong.

First of all I guess I’m supposed to store the length of the subscription somewhere on my own database, because as stated on Apple’s docs, you cannot retrieve it in any way through Apple’s web services. In fact, each subscription length has a different product identifier, so you should have a way to convert a product identifier to a subscription length.

Also, Sylvian has posted details about his implementation of auto-renewable subscriptions, so at least I know my thinking wasn’t too much flawed.

Now the only problem is this: how do I know that an user has a valid subscription? I could store this information on my server, yeah, but how do I associate an user with a completed transaction? Should I save the device’s UDID?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T03:23:16+00:00Added an answer on May 21, 2026 at 3:23 am

    I think I found a solution. It doesn’t require an additional username/password and it seems to be working.

    Note: If you think this is inappropriate, please explain why in the comments. Thanks.

    Basically, whenever an user buys a subscription, I validate the receipt against my server and store the receipt data in the user defaults. Then, when the app is opened, or whenever I need to check if the subscription is still valid, I retrieve the previously saved receipt data from the user defaults and validate it against the server.

    My webservice just returns whether the subscription is still valid or has expired, plus some other related information such as the subscription length. To do this, it just queries the iTunes server as usual, and checks if the status response is nonzero. 21006 means that the subscription has expired.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sorry for that millionth question on autorenewable subscriptions, but i don't get it. I've
I have a question about regex/Python. Sorry if this topic has been discussed millions
Sorry if this is a noob question, but I have been given the dubious
sorry for lamer question, but I really could not found subject. I have a
I'm sorry if this question is basic(I'm new to nosql). Basically I have a
Sorry for the basic question - I'm a .NET developer and don't have much
Sorry for this not being a real question, but Sometime back i remember seeing
Sorry if this sounds like a really stupid question, but I need to make
Sorry for the very involved question, but this is something I've been researching for
Sorry if this is a question with a obvious answer but my knowledge with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.