Search results for

restore purchases

21,821 results found

Post

Replies

Boosts

Views

Activity

Reply to need for 'restore purchase'
I have the same problem. The review process demands restore functionality and says restoring purchases on launch is not acceptable. In the documentation it is mentioned with: Don’t automatically restore purchases, especially when your app launches. Restoring purchases prompts for the user’s App Store credentials, which interrupts the flow of your app. Well ... this forbids to use .currentEntitlementTask or any other entitlements requesting tasks on start of the app because of the reason above.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’24
IAP - Restore purchase in a auto-renewable with S2S integration scenario
We have a pretty simple setup: iOS 14 as min target only auto-renewable subscriptions Apple S2S integration Here is, in short, our flow: APP: We register a PaymentQueue observer early in the application lifecycle and whenever a newly purchased transaction is received, we send the receipt to the backend for validation. This happens regardless of whether the purchase was user-initiated (i.e. for an actual purchase) or not (i.e. autorenewal). BACKEND: The backend receives the receipt, validates it against verifyReceipt Apple's endpoint, and stores relevant information into the database. This information gets sent back to the app over time in order to let it figure out whether the user is subscribed, and block relevant content if he is not. Also, we continue poll Apple's endpoint over time as suggested in the well-known WWDC 2018 session. S2S SERVICE: whenever we receive a notification from Apple, we take the latest receipt base64 data, validate it against verifyReceipt endpoint, and th
2
0
1.5k
Sep ’21
Reply to Issuing an SKReceiptRefreshRequest on the app's startup
The recommendation is to look for the receipt but don't do a refresh. If there is no receipt then place the user in a category where they have not yet purchased the IAP. Give them the option to 'restore purchases' or 'if you have purchase a subscription on another device owned by you tap ......'. If they chose 'restore purchases' then do a refresh (or a restoreCompletedTransactions).
Topic: App & System Services SubTopic: StoreKit Tags:
Apr ’20
Reply to Non-renew subscription and receipt?
I implemented a Restore Purchases button to refresh the receipt and get the non-renewing subscription in-app purchases on other devices. It was rejected by the App Store and the explanation was that non-renewing subscription in-app purchases do not require a Restore Purchases button. This seems wrong. Anyhow, I titled the button something else and it was approved.
Topic: App & System Services SubTopic: StoreKit Tags:
Oct ’15
Restoring purchases gives me a [Error Domain=SKErrorDomain Code=0 "Cannot connect to iTunes Store"]
Hi Everyone,We recently implemented in app purchases on our app and I am experiencing some strange behavior. Using a sandbox user credentials I am able to purchase a non consumable product perfectly fine. However every time I try to restore that purchase, I get the following error :Error Domain=SKErrorDomain Code=0 Cannot connect to iTunes Store UserInfo=0x170464b40 {NSLocalizedDescription=Cannot connect to iTunes Store}. Here is how I initiate a restore : @IBAction func restorepurchasesnow(sender: AnyObject) { if transactionInProgress { return } SKPaymentQueue.defaultQueue().addTransactionObserver(self) SKPaymentQueue.defaultQueue().restoreCompletedTransactions() restorepurchase.setTitle(NSLocalizedString(settings.inprogress, comment: Transaction in progress), forState: UIControlState.Normal) self.transactionInProgress = true println(Trying to restore purchases) }Has anyone experienced the same thing ? Does anyone know how to fix it ?Thank you !
4
0
4.4k
Sep ’15
Reply to Purchases not always works
You wrote the following:>With appleID-A i am on a iPad and buy the in-app purchase 'full-version'.......With the same appleID-A I am also on an iPhone. I press the restore purchases but does not work....If I login with AppleID-A on a different iPhone, press restore purchases, the app unlocks the full version.So - will that first iPhone's 'restore' function work if you shut the app off and turn it back on again? If not - what else is different between those 2 iPhones?
Topic: App & System Services SubTopic: StoreKit Tags:
Dec ’16
Restore in-app purchase
I have an app where I want to implement in-app purchase for non-consumable product. Per Apple's in-app purchase guidelines, I have to provide option to restore purchases. Also in my app each user needs to register with an account, and this is what bothers me:Let's say Jon Doe has registered in my app with account X and made purchase, and on my server side I have created record of this. Now Jon decides to create new account in my app - X1 and he decides to restore purchases and he enters his iTunes password and everything is fine, but account X1 is not aacount X in my app, he should not receive this product again (for different account) based on same iTunes purchase.I could not find anything in apple guidelines about this, so my question is can I reject restoring purchase for account X1 because initial purchase was made by account X even though X and X1 are actually same person - Jon (using different accounts in my app) but using same iTunes accoun
3
0
1.6k
Jun ’16
Reply to When does Restore button need to appear?
From the docs:https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/StoreKitGuide/Chapters/Restoring.htmlRestoring Purchased ProductsUsers restore transactions to maintain access to content they’ve already purchased. For example, when they upgrade to a new phone, they don’t lose all of the items they purchased on the old phone. Include some mechanism in your app to let the user restore their purchases, such as a Restore Purchases button. Restoring purchases prompts for the user’s App Store credentials, which interrupts the flow of your app: because of this, don’t automatically restore purchases, especially not every time your app is launched.In most cases, all your app needs to do is refresh its receipt and deliver the products in its receipt.Restoring Completed TransactionsYour app starts the process by calling the restoreCompletedTransactions method of SKPaymentQueue....use the link for further
Apr ’18
Restoring In app purchases
I want to make a purchase/restore button for my in app purchase. I want to check if restoring fails, and if so then prompt to purchase. I am using SKPaymentQueue.default().restoreCompletedTransactions() to restore purchases. If any one knows this would be a big help. Also please let me know if for some reason apple doesn't want the purchase and restore button to be the same button. Thankyou
0
0
423
Jul ’21