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 6967453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:19:26+00:00 2026-05-27T16:19:26+00:00

I have got StoreKit to work for auto-renewable subscriptions and can successfully buy and

  • 0

I have got StoreKit to work for auto-renewable subscriptions and can successfully buy and renew subscriptions via the Sandbox. So far, so good.

The problem I am having is that the expiry date being returned by apple seems in-correct.

When first purchasing the subscription, it gives you a receipt response. In this response it gives you expires_date_formatted, this is obtained by querying the receipt or latest_receipt_info part of the response back from apple.

When the subscription has expired, you will get a latest_expired_receipt_info response (this does not appear in regular purchases and only when the receipt has expired).

For whatever reason, the latest_expired_receipt_info has a different date stored inside expires_date_formatted, and its causing me all sorts of headaches.

Usually my app will report that the subscription has expired but when you try to repurchase a subscription, it will say that the subscription is still active.

This seems to imply that the date inside latest_expired_receipt_info is accurate, but there appears to be no way to get that date (unless you intentionally let the subscription expire).

Examples:

receipt (stored) = {
    bid = "myappid.goeshere";
    bvrs = "1.0";
    "expires_date" = 1321365095905;
    "expires_date_formatted" = "2011-11-15 13:51:35 Etc/GMT";
    ...other stuff....
}
latest_expired_receipt_info = {
    bid = "myappid.goeshere";
    bvrs = "1.0";
    "expires_date" = 1321366860000;
    "expires_date_formatted" = "2011-11-15 14:21:00 Etc/GMT";
    ...other stuff...
}

In the above example, we can see that the expires_date_formatted is totally different, one says 13:51, the other says 14:21

In other tests the difference can be anything from a few minutes to ten or twenty minutes.

How do I get the correct expires_date_formatted?

  • 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-27T16:19:26+00:00Added an answer on May 27, 2026 at 4:19 pm

    You are testing in sandbox mode and not in production mode.

    In this case subscriptions are much shorter: 7-day subscriptions are only 5 minutes and 1-year subscriptions expire after an hour.

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

Sidebar

Related Questions

Apple finally introduced the so called auto-renewable subscriptions yesterday. Since I only have few
I have got my own JAR () running via separated class loaders and one
have got a problem with do this kind of code , can't figure how
Have got an NSString *str = @12345.6789 and want to find out if there
We have got a custom MembershipProvider in ASP.NET . Now there are 2 possible
We have got loads of options for php + MySQL + Apache combo... Which
I have got a python script which is creating an ODBC connection. The ODBC
I have got a C function in a static library, let's call it A,
I have got the following problem since the server has safe mode turned on,
I have got some code to load an assembly and get all types, which

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.