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

358 Posts
Sort by:
Post not yet marked as solved
1 Replies
256 Views
I have implemented this StoreObserver and I have registered it in AppDelegate but my paymentQueue func never gets called whenever there is a successful purchase. The reason I need it to be called is firstly to finish the transaction but to also send the device receipt to the server. Currently, my receipt is always null. The purchases themselves work OK, both in XCode and in Sandbox. I can't figure out what I'm doing wrong in terms of the setup of the storeobserver. Any help will be greatly appreciated. AppDelegate.swift let iapObserver = StoreObserver.shared func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool { UIApplication.shared.registerForRemoteNotifications() UNUserNotificationCenter.current().delegate = self SKPaymentQueue.default().add(iapObserver) return true } StoreObserver.swift class StoreObserver: NSObject, SKPaymentTransactionObserver { static var shared = StoreObserver() func paymentQueue(_ queue: SKPaymentQueue, updatedTransactions transactions: [SKPaymentTransaction]) { for transaction in transactions { switch (transaction.transactionState) { case .purchased: SKPaymentQueue.default().finishTransaction(transaction) //print the receipt but it is always nil. (I will be saving this on the backend for validation) if let url = Bundle.main.appStoreReceiptURL, let data = try? Data(contentsOf: url) { var receiptDataString = data.base64EncodedString() print(receiptDataString) } break case .failed: SKPaymentQueue.default().finishTransaction(transaction) break case .restored: SKPaymentQueue.default().finishTransaction(transaction) break case .deferred, .purchasing: break default: break } } } func paymentQueue(_ queue: SKPaymentQueue, removedTransactions transactions: [SKPaymentTransaction]) { // } func paymentQueueRestoreCompletedTransactionsFinished(_ queue: SKPaymentQueue) { // } func paymentQueue(_ queue: SKPaymentQueue, restoreCompletedTransactionsFailedWithError error: Error) { // } func paymentQueue(_ queue: SKPaymentQueue, updatedDownloads downloads: [SKDownload]) { // } }
Posted Last updated
.
Post not yet marked as solved
1 Replies
256 Views
Hi everyone, is it possible to launch my app for free first and then convert it to freemium with in-app purchases? Since I currently have very little content in my app, I want to focus on releasing it for free and collecting user feedback first. Afterwards, I want to convert it to freemium. Is there such a possibility?
Posted
by sloutales.
Last updated
.
Post not yet marked as solved
1 Replies
337 Views
Does anyone have the link to a keynote where someone from Apple speaks about or explains non-renewing subscriptions in detail? I know what non-renewing subscriptions are, they are basically an in-app purchase with an expiry date. However, I want to better understand why I need to be the one that builds in the expire functionality in the app and why I need to handle things like how it should work if the user buys a new device before the period is over for example. Why can't Apple handle this stuff?
Posted
by Filip27.
Last updated
.
Post not yet marked as solved
1 Replies
179 Views
My app is using unity IAP. I created subscriptions. They are in status 'Waiting for review". But when I run it can't find products. UnityIAP: Received 0 products Can unapproved subscription be tested?
Posted
by igstudio.
Last updated
.
Post not yet marked as solved
1 Replies
245 Views
Hey guys, we just noticed yesterday IAP stopped working and we no longer display our subscriptions on the App Store page. We unfortunately were not notified on the right account and didn't renew the agreement which right now is in "Verifying" mode. I signed it after it expired. I was wondering if anyone knew what happens to the existing subscribers? We are worried we are going to lose them all or they are stuck in some pending state? This is the same for any subscription which has to renew today. At the same time, does anyone know how long it takes apple to review these things? We have already sent 2 support tickets, but it's easter weekend, so I don't know if we need to stay in this crisis mode for another 4 days. :(
Posted
by Edward14.
Last updated
.
Post not yet marked as solved
1 Replies
193 Views
Today our members randomly experiencing an issue with paid memberships on 2 of our apps. Some paying members experienced unexpected switch back to free accounts (no longer receiving premium benefits) This has happened with out any changes or updates being made to our app code or within app connect. Furthermore, we're seeing two additional problems: Premium Membership Prices Not Loading: The price information on the premium membership page is stuck on "loading" and isn't displaying correctly. Existing Paid Members Missing Benefits: Even though their subscriptions appear active on the Apple platform, existing premium members are no longer receiving their premium benefits. Since we haven't made any changes on our end, we suspect this might be related to a recent modification on the Apple backend. Has anybody else experienced something similar? Thank you
Posted
by XBetGroup.
Last updated
.
Post not yet marked as solved
0 Replies
99 Views
We recently discovered that weekly subscription activations are not showing up in Activations in the events section in Trends. I can see yearly activations, but not weekly. What could be the reason for this?
Posted Last updated
.
Post not yet marked as solved
2 Replies
217 Views
I purchased an apple developer program subscription, received an invoice also but it's been more than 24 hrs and my account still shows pending status. And shows an option to purchase developer program. Tried to contact support but the web page redirects to main page on support get started click. Does anyone know how to resolve this issue?
Posted Last updated
.
Post not yet marked as solved
0 Replies
191 Views
I have a smart camera device that can be added as an accessory to a homeKit. I want to implement a subset of functionalities of the smart camera behind a paid subscription or a paywall. Anyone aware if this has been done before? i.e. conditionally exposing services on a Homekit accessory as a paid feature? So far neither have I seen any such examples and also nowhere in the apple docs does it say that you can't. So looking for any information regarding this. The questions are Does apple support paid services in Homekit accessories? If not, does it prevent people from implementing customized solutions?
Posted
by misra-s.
Last updated
.
Post not yet marked as solved
1 Replies
303 Views
Hi, Starting this weekend our backend fails to connect to the production Apple verifyReceipt endpoint. It's a C# .NET service running on windows server. The full exception received is: Exception: "The underlying connection was closed: An unexpected error occurred on a send". Inner Exception: "Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host". Is someone else facing a similar issue? sending a request to the Apple production verifyReceipt URL via Postman (located on the same server) succeeds. Thanks in advance...
Posted Last updated
.
Post not yet marked as solved
0 Replies
170 Views
Hello, Our application operates on a service-based model with a subscription system. We've noticed that some users have subscribed to our service, utilized it, and then requested a refund from Apple. However, we have already incurred charges from our vendors for the services utilized by these users. We are exploring options to prevent users from requesting refunds for subscriptions after utilizing our services. Is there any mechanism or strategy available to prevent users from obtaining refunds for subscriptions once they have utilized the service? Your assistance in this matter would be greatly appreciated. Thank you.
Posted
by Ravi1207.
Last updated
.
Post marked as solved
1 Replies
310 Views
Static content is things like unlocking more functionality within an app, that doesn't change over time. Very basic example: Let's say I have an app that displays the workload on the CPU as a percentage in the macOS menu bar. I might want to give the user an option to pay to unlock features that also displays the workload percentage for the GPU and RAM in the macOS menu bar. For this, automatically renewing subscription is not allowed. But would a non-renewing subscription be acceptable, or does it have to be a perpetual (pay one time own forever) in-app purchase for static content?
Posted
by Filip27.
Last updated
.
Post not yet marked as solved
1 Replies
149 Views
As a new developer I apologise if this is simple. But I did call Support and they pointed me in this direction. I have an app in development that is not ready to put in the App store. I am yet to purchase a license and have been testing my app on my own devices with the 7 day expiry. I have someone prepared to test my app who is some distance from me. If I purchase a license will the app last longer than 7 days on both my and their device or will it still disappear every seven days. thanks
Posted Last updated
.
Post not yet marked as solved
3 Replies
268 Views
Hi, I'm working on in-app purchases, and I've created a webhook to receive data sent by the app store whenever there's user subscription activity (CANCEL, DID_RENEW, DID_CHANGE_RENEWAL_STATUS, EXPIRED). Below is the full path of the webhook URL: Webhook URL: https://api.envelopegenerator.live/api/subscription/subscriptionnotification I've set up the webhook to retrieve the status of user subscriptions, but it's not receiving any calls from the app store.
Posted
by Armia_Dev.
Last updated
.
Post not yet marked as solved
0 Replies
210 Views
What does offerCode correlate to in this photo? What does CODE equals in the Offer Code URL? My goal is to track which promo codes generate successful transactions by sending a message with the CUSTOM CODE "Referral123" in the message payload to my database. Can someone please confirm that offerCode equals CODE equals "Referral123"? TIA <3
Posted
by tazs.
Last updated
.
Post not yet marked as solved
0 Replies
193 Views
I also found this problem from this Monday morning, in the sandbox environment, resume the purchase operation, if the product is an in-app purchase non-consumable item, you can get the corresponding historical bill, but if it is an automatic subscription product, it is difficult to receive the historical bill, resulting in the inability to restore the automatic subscription product. You'll need to try a few or even 10 times to restore your purchase before you can get your previous bill. Resuming a purchase shows an error with the error Error Domain=SKErrorDomain Code=0 "An unknown error has occurred". I hope that Apple can check whether there is a related problem with the corresponding sandbox billing server, and I am anxious to wait for this problem to be solved.
Posted
by FrankXin.
Last updated
.
Post not yet marked as solved
3 Replies
232 Views
Only in sandboxed environment, it was fine before, recently there was an error clicking to resume purchase, showing the error cause as Error Domain=SKErrorDomain Code=0 "An unknown error occurred" UserInfo={NSLocalizedDescription=An unknown error occurred,. NSUnderlyingError=0x303bae790 {Error Domain=ASDServerErrorDomain Code=5002 "An unknown error occurred" UserInfo={NSLocalizedFailureReason=An unknown error occurred}}}
Posted Last updated
.