Search results for

“restore purchases”

22,098 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
541
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
Reply to Apple Insider Resume Purchase Reporting Errors
We're experiencing the same issue also since Monday morning: error 5002 while restoring purchases.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Mar ’24
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:
Replies
Boosts
Views
Activity
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:
Replies
Boosts
Views
Activity
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:
Replies
Boosts
Views
Activity
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
Replies
1
Boosts
0
Views
541
Activity
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:
Replies
Boosts
Views
Activity
Apr ’18
Reply to Unfinished transactions not being emitted on start of app
Is there an update on this issue? (I have tons of users which have non working renewals, and restoring purchase is not working for them.)
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Aug ’23
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:
Replies
Boosts
Views
Activity
Sep ’25
Reply to paymentQueue Never Restores Purchases?
I've tested the application on a different machine. Again, the restoration process fails. I've tested an existing iOS application. It fails to restore purchases in the same manner.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Jun ’17
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?
Replies
3
Boosts
0
Views
1.3k
Activity
Oct ’21
Reply to need for 'restore purchase'
Why did I have to come here to finally find the seemingly-unnecessary API to restore purchases that app review wants me to call? 😅
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’24
Reply to Why developer need to provide restore button?
Implement proactive in-app purchase restore: continue providing a “Restore Purchases” button within your app. While not used often, it does give customers an opportunity to force an app to restore their Apple ID’s transactions in case of an issue or if the customer uses a different Apple ID.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Oct ’22
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.
Replies
12
Boosts
0
Views
2.4k
Activity
Mar ’17
Reply to Can't find a way to get an Xcode-signed receipt for Mac app
Still experiencing the same issue, Xcode 12.4, Big Sur 11.2. No xcode receipt, no restoring purchases.
Replies
Boosts
Views
Activity
Feb ’21
Reply to SKProductsRequest fails with SKErrorDomain error 0
We have tested inapp purchases on device with 9.2beta, on which we previously had problems, - now it is possible to make and restore purchases. Dowloading hosted content also doesn't break inapps.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Nov ’15