Subscriptions

RSS for tag

Give users access to content, services, or premium features in your app on an ongoing basis with subscriptions, a type of in-app purchase.

Subscriptions Documentation

Posts under Subscriptions tag

306 results found
Sort by:
Post not yet marked as solved
1.7k Views

Error thrown when querying for Subscription Products

Hi, I have been testing StoreKit 2. I'm trying to query for available subscription products by using the following query code as per the document. I have configured the in-app purchases with subscriptions in appstoreconnect. The request query keeps throwing an error. Would appreciate some help. Query Code let productIdentifiers: Set = ["monthly_subscription", "yearly_subscription", "family_monthly_subscription", "family_yearly_subscription"]         async {             do {                 let _subscribableProducts = try await Product.request(with: productIdentifiers)                 self.subscribableProducts = _subscribableProducts             }             catch {                 print("Something went wronge \(error)")             }         } Error thrown systemError(Error Domain=ASDErrorDomain Code=507 "Error decoding response" UserInfo={NSLocalizedDescription=Error decoding response, NSLocalizedFailureReason=Could not decode media products response})
Asked Last updated
.
Post not yet marked as solved
61 Views

AppStoreConnect subscriptions are broken again

Yesterday I could not modify or delete any (multiple same) localizations. Today, not even the PLUS and the links on the localizations to edit are shown. My subscriptions have been rejected but I can't change the requirements as the page is not working. On the left side is a current tab and on the right side is a tab from yesterday that I still had open.
Asked
by CADev.
Last updated
.
Post marked as solved
36 Views

Unusual configuration problem for subscriptions

My educational app is structured around courses. Users can subscribe for "unlimited" courses or a "single course". The question is how best to implement the "single course" subscription -- so that the app knows which course is subscribed and also so that the user can change courses? One approach would be to define a separate subscription IAP for each course. Then it's trivial for the app to know which course, and the user could upgrade/downgrade/crossgrade to a different course using the Manage Subscriptions UI. The problem is that we already have a dozen courses and we're headed for dozens more. I'm afraid the Manage Subscriptions UI wasn't intended to handle a case where there are hundreds of subscription options. The other approach would be to have only one "single course" subscription; then I'd need to manage the course info myself and there'd be no good crossgrade path for the user. Am I thinking about this correctly? Are there other options besides the two mentioned?
Asked
by sharp11.
Last updated
.
Post not yet marked as solved
40 Views

Is expiresDate always present on JWSTransactionDecodedPayload for ?

Hello! Can I always count on expiresDate to be present in a JWSTransactionDecodedPayload, or only for certain transaction types (i.e. "Auto-Renewable Subscription")?
Asked
by bdan.
Last updated
.
Post not yet marked as solved
53 Views

Can't delete subscription localizations after Appstoreconnect update

Hi, Appstoreconnect had so many issues yesterday. The subscription page is new now. I think that due to these issues erroneous (duplicating) data got into the database. So now I have multiple "German" localizations and cannot delete them: It comes to the following error message, which can also only be seen in the JSON response, because the new page does not show this error. Must have been forgotten to implement. { "errors": [{ "status": "500", "code": "UNEXPECTED_ERROR", "title": "An unexpected error occurred.", "detail": "An unexpected error occurred on the server side. If this issue continues, contact us at https://developer.apple.com/contact/." }] } Therefore, my subscriptions are currently rejected. How do I get it to go away? Is it possible to delete a subscription and use the same "Product ID" again?
Asked
by CADev.
Last updated
.
Post not yet marked as solved
67 Views

Apple Appstore - Receiving subscription error 21101 while trying to subscribe on TestFlight builds

I am experiencing a "Appstore subscription error 21104 There's no information available for In-App Purchases. Try again later." when trying to subscribe on our TestFlight builds. So far I couldn't find anything promising on internet for figuring out why it's happening. Any info on this is appreciated. Thank you!
Asked Last updated
.
Post not yet marked as solved
107 Views

How to setup 1st free trial offer for subscribers

in our app we have a ongoing auto-renewing subscription which is billed monthly ive setup a new 60 day free trial offer in the app store listing for that subscription product Now this offer is only shown to new subscribers but I assume that as a sandbox account user when i try to subscribe (/5min) i will not be shown this free trial offer? (ive tried it and indeed i dont get shown any free trial offer) is there anything else that needs to be done to enable showing of free trial offer to new users? For example do we need to change anything in the app code itself? Once its setup right how would I test its showing right? Would I need to use a different device with a different apple account?
Asked
by rizbituk.
Last updated
.
Post marked as solved
52 Views

Can’t find any information about original_transaction_id in Family sharing

Can’t find any information about original_transaction_id in Family sharing.  Can anyone say will original_transaction_id one for all members who get a subscription with Family sharing or original_transaction_id will be unique for all users? I need to determine all members from all Family Sharing to give them ability to use the same data.
Asked Last updated
.
Post not yet marked as solved
50 Views

AppStore Promotional Offer is not applying discounted price

My new app has certain features that require auto-renewing subscriptions. I set up my subscription and set its pricing on AppStore Connect. I also want to offer a promotional offer which discounts the monthly subscription fee. I also set this up on AppStore Connect. When I test the app on my iPhone, the subscription prices comes up at full price and not discounted promotional price. Is there anything special I need to do for promotional price to apply? Do I need to use "Introductory Offers" instead? I thought "Promotional Offer" was the right one for me because it applies to all new users for a set period. The introductory offers seem to have a set start/end dates.
Asked
by imsam67.
Last updated
.
Post not yet marked as solved
853 Views

Is subscription autoRenewStatus in StoreKit2 working correctly with Sandbox testing?

It seems that subscription status gives different results with XCode testing and Sandbox testing. I am using StoreKit2 to implement an IAP of an autorenewable subscription. I want to determine whether the subscription has been cancelled, so that the UI reflects that the subscription will stop after the expiry date and not be renewed. the 'willAutoRenew' property of the subscription status renewalInfo seems to do exactly what is required, and works fine in XCode testing. My setup is very similar to the StoreKit demo associated with the WWDC21 session available here: https://developer.apple.com/documentation/storekit/in-app_purchase/implementing_a_store_in_your_app_using_the_storekit_api/ To demonstrate its use, add: print(renewalInfo.willAutoRenew) after line 79 of the SubscriptionsView in the demo project. When you run the app, and purchase a Standard Navigation assistance subscription, the console shows 'true'. If you then cancel the subscription in XCode (Debug:StoreKit:Manage Transactions), the console will show 'false' as expected So far so good. My problem is that when I move to Sandbox testing, and cancel the subscription in another way (eg using the .manageSubscriptionsSheet view modifier, or in Settings:App Store:Sandbox Account), the willAutoRenew property remains true, even though the subscription is in fact cancelled (ie it disappears after the expiry date) Does anyone know a workaround to determine cancellation status?
Asked
by Baylward.
Last updated
.
Post not yet marked as solved
129 Views

Offer code transition treated as price increases

Something has gone wrong with the way offer codes are treated over the last two weeks. Whenever I used offer codes to allow customers to have, say, 1 month of free usage of a subscription, it would then automatically continue the subscription on the paid version without any extra user interaction/confirmation being required. Since two weeks ago, some of my customers have been getting 'agree to price increase' prompt by the app store and on the serverside I'm getting the price_consent_status flag on their subscriptions. This doesn't apply to everyone, just some people. This is not the behaviour documented by Apple and not what my experience has been for a while. I've checked with a few friends and couple of them have been getting random events like mine. This has huge implications for the onboarding/payment UX. Is Apple planning a migration and we're part of their A/B test? or is it a bug?
Asked Last updated
.
Post not yet marked as solved
1.1k Views

Testing subscriptions upgrade/downgrade on sandbox

Hello, At the moment, we have one auto-renewable subscription on our live app, and we want to add two more, where the only difference is the price and the subscription time. To accomplish that, we created a "subscription group" and everything is set up on the apple side, and the app is currently reading all the packs from the store and allow the user to buy them. Our issue is that we can't fully test the upgrade/downgrade feature when trying to buy another subscription level on sandbox (iOS 14.5). If we buy the lowest pack first, and then try to buy a superior pack, a popup should appear saying that we want to modify our current subscription plan to another one and that it will start on XX/XX/2021. This is not the behaviour we are seeing on our app (on sandbox). When we try to buy a superior plan the app shows the normal purchase popup and it proceeds to buy the pack normally without showing the popup warning that we are changing our current plan. This causes some concerns, as it implies that the user is buying two subscriptions. They are on the same subscription group, so it should be impossible, but still brings concerns... Did anyone experienced the same issue? Is this the normal behaviour in sandbox?
Asked
by Phuz3r.
Last updated
.
Post not yet marked as solved
56 Views

Change subscription from plan a -> b -> a Fails

Hello, I have two plans for my IAP subscription (auto renew). They are both $3.99 at the moment. They are in the same group. I'm going to change the prices after I figure this out so they're not the same. But I shouldn't have this error. If I sign up (in the sandbox) with the "normal" plan, it's great. Then I change my plan to the "Pro" plan using the popup like this: AppStore.showManageSubscriptions(in: windowScene as! UIWindowScene) Then I get the status of the plan like with a request to the apple server api: ${appleApiUrl}/inApps/v1/subscriptions/${user.originalTransactionId} And everything is great, it shows "Pro" plan as the last transaction. But then if I open the dialog again and switch back to the "normal" plan, when I call the apple server api it just shows the last transaction is the pro plan. So I can't detect that somebody switched back. It's unlikely to happen, but definitely could. Please fix! Thank you!
Asked Last updated
.
Post not yet marked as solved
57 Views

Metered Usage Based on User Numbers

Currently developing an app where the target business model is similar to slack. A given organization is allocated a set of limits. Based on the number of users and/or usage against other in app metrics, a subscription is required to unlock those features and/or additional users. The subscription would be singular, billed back to an organization and not each individual user. Wondering how Slack and similar apps are managing this with the current guidelines warning for apps that redirect to another payment gateway to handle subscriptions that unlock features.
Asked
by nkndy_.
Last updated
.