Search results for

restore purchases

21,821 results found

Post

Replies

Boosts

Views

Activity

Reply to StoreKit StoreView restore purchase listener
When you use StoreKit 2 with StoreView, there's normally no need for existing customers to manually restore purchases. You can choose to make the restore purchases button visible for rare cases where a customer doesn't have access to an in-app purchase product they believe they should have access to. I think the closest API to what you are requesting is currentEntitlementTask(for:priority:action:), which we also cover in the Meet StoreKit for SwiftUI session around the 16:40 timestamp. The API I shared makes it easy to add a dependency on the current entitlement to any SwiftUI view that depends on someone owning your in-app purchase. You can also check this in imperative code using an API like currentEntitlement on Product. In either case, the API should have accurate information as soon as you call it without requiring your customers to manually use a restore button. If a customer activates the restore purchases button in your store view, and a missing tr
Topic: App & System Services SubTopic: StoreKit Tags:
Mar ’24
Reply to Is receipt refresh needed when restore purchase is available?
> in response to tapping Restore purchase button, rather than at a random time when the app notices there is no receipt.Both procedures would be in response to tapping the Restore purchase button.It's 6 of one half a dozen of the other which you use - except for subscriptions where the receipt is better. Of course, that assumes you are verifying receipts. If you are not verifying receipts then just do the restoreCompletedTransactions.
Topic: App & System Services SubTopic: StoreKit Tags:
Feb ’18
Reply to Is receipt refresh needed when restore purchase is available?
I appreciate the feedback, but that's the part I don't understand. Since a refresh request requires the user to login, I'd rather have the login be in response to tapping Restore purchase button, rather than at a random time when the app notices there is no receipt.The chief scenario I am imagining is when a user restores a backup copy of the app from iTunes and has no receipt. In that case, it is perfectly appropriate to expect them to do restore purchase, don't you think?
Topic: App & System Services SubTopic: StoreKit Tags:
Feb ’18
Restoring multiple purchases
Hello,So i have a problem.I have 2 in-app purchases, both non-consumables. I can buy them and everything, but when it comes to restoring them is where it gets screwy.When i create a new sandbox tester and hit my restore purchase button, it calls the restore purchases function but i hadnt made any purhcases on that account. And i do not know how to make it check which in app purchase has already been purchased, and which part of the code to call based on this finding.This is the code I call when i click the restore button:}else if nodeArray.first?.name == Restore{ if SKPaymentQueue.canMakePayments() == true{ SKPaymentQueue.default().add(self) SKPaymentQueue.default().restoreCompletedTransactions() }and heres the restore funcfunc paymentQueueRestoreCompletedTransactionsFinished(_ queue: SKPaymentQueue) { for transaction in queue.transactions { let t: SKPaymentTransaction = transaction let prodID = t.payment.productIdentifier as Str
1
0
539
Apr ’17
Reply to No record of IAP but user has receipt
Thanks for the reply!I'm a little confused your comment about the code having a restore function. Do you mean we should have coded something in the iPhone app to restore purchases?I've inherited this code base so I'm not entirely familiar with everything yet. We have a Rails backend that verifies the receipts with the App Store.The user sent in their receipt for a yearly subscription. There's no mention of a promo code. I can ask the user to sign out of the app and restore purchases and see if that does anything.
Topic: App & System Services SubTopic: StoreKit Tags:
Apr ’18
Reply to The restore purchase operation always returns no transactions
tried to restore purchase Are you calling restoreCompletedTransactions() to restore your purchases? If yes, this method doesn't return in the following situations: All transactions are unfinished. The user did not purchase anything that is restorable. You tried to restore items that are not restorable, such as a non-renewing subscription or a consumable product. Your app’s build version does not meet the guidelines for the CFBundleVersion key.
Topic: App & System Services SubTopic: StoreKit Tags:
Sep ’25
Restore In app Purchase
I took an Autorenewable monthly subscription from one Apple Id and now for some reason, I changed my device and install the application from where I took the subscription. It is asking me for Restore Purchase Now If I try to Restore with a different AppleId from which I had not done purchase then what error throws by Apple? and How I can detect that this is not the same Apple Id from which I made payment?
3
0
1.3k
Oct ’21
Restoring purchase on production and sandbox "cannot connect to itunes store"
Yesterday my users began complaining about not being able to restore in-app purchases.They would recieve the Cannot connect to iTunes message.When I call [[SKPaymentQueue defaultQueue] restoreCompletedTransactions];It gives this error in -(void)paymentQueue:(SKPaymentQueue *)queue restoreCompletedTransactionsFailedWithError:(NSError *)errorerror Cannot connect to iTunes Store domain: SKErrorDomain code: 0 userinfo: { NSLocalizedDescription = Cannot connect to iTunes Store;}This happens both in production and the sandbox.
12
0
2.4k
Mar ’17