Search results for

restore purchases

21,818 results found

Post

Replies

Boosts

Views

Activity

Restoring purchased products on macOS
Hi there!I'm currently trying to implement IAP in my macOS app and struggling with the feature to restore purchased (non-consumable) products for various reasons:When I request a receipt refresh submitting a SKReceiptRefreshRequest according to Apple's doc (in the sandbox, outside of Xcode), the delegate method- (void)request:(SKRequest *)request didFailWithError:(NSError *)error is alway called with an error = nilI realized that SKReceiptRefreshRequest is only available since macOS 10.9, while the other StoreKit classes / protocols exist since 10.7; How to handle refreshes with a deployment target < 10.9? Most important: What exactly is the purpase implementing this function? I think the user can only loose his purchases when deleting the receipt from the app bundle (or the app bundle itself). Then he can re-download or restore the app and a receipt is requested during the first launch. When does a user need to restore a purchase which is a non-consumable produ
6
0
1.8k
Oct ’16
StoreKit StoreView restore purchase listener
I use StoreKit's StoreView to buy in-app purchases. The purchase is working in the simulator, but how can I restore purchases? I did not find a restore handler, there is only a onInAppPurchaseCompletion but I'm missing a onRestorePurchaseCompletion or similar. This is how it looks This is my code: StoreView(ids: [my.product.id]) .storeButton(.visible, for: .restorePurchases) .storeButton(.hidden, for: .cancellation) .onInAppPurchaseCompletion { product, result in if case .success(.success(let transaction)) = result { print(Purchased successfully: (transaction.signedDate)) isPremium = true } else { print(Something went wrong) } }
1
0
1.6k
Mar ’24
How do I restore purchases in an iMessage App Extension?
This code works in my main app, but in the iMessage App Extension, it throws an error.Error Domain=SSErrorDomain Code=4 Cannot connect to iTunes Store UserInfo={NSLocalizedDescription=Cannot connect to iTunes Store}func restoreInAppPurchase() { receiptRequestHolder = SKReceiptRefreshRequest.init(receiptProperties: [:]) receiptRequestHolder!.start() }Is restoring purchases in this manner simply not possible in an iMessage App Extension?
7
0
2.8k
Dec ’18
Can't restore purchases on iOS sandbox environment
Hey everyone I'm having trouble restoring purchases on iOS in a sandbox environment, whether it's through TestFlight or Xcode. I keep getting the error message 'restoreCompletedTransactionsFailedWithError - An unknown error occurred' Has anyone else experienced this issue, and if so, how did you solve it? Or does anyone have any suggestions for what might be causing this problem? Thanks in advance!
0
0
583
Apr ’23
paymentQueue Never Restores Purchases?
Does anybody have trouble restoring in-app purchases? I've installed the in-app purchase function on a new macOS application. I was able to make a purchase with a test account earlier. But I have not been able to restore the purchase. After the app callsSKPaymentQueue.default().restoreCompletedTransactions(), it never callspaymentQueue(_ queue: SKPaymentQueue, updatedTransactions transactions: [SKPaymentTransaction])This isn't my first time installing the in-app puchrase. It's not the 2nd or 3rd. Does anybody have the same trouble?Thanks.
4
0
982
Jun ’17
Problem IOS 14 Purchase buySubscription and Restore Purchases
Hi Guys, I am developing IOS purchases on a physical device. Everything was working fine until I upgrade to IOS 14 version. Device: Physical iPhone 6 IOS: 14 The problem: Before making a purchase I send to verify the restore purchases with my backend I check that the user does not have active subscriptions If the user does not have active subscriptions, I will send him to buy a subscription The purchase popup never appears This happens with users who have already made a purchase before. I tried removing the call from the restore purchases and it works fine without this one. RCT_EXPORT_METHOD(getAvailableItems:(RCTPromiseResolveBlock)resolve tttttttttreject:(RCTPromiseRejectBlock)reject) { tt[self addPromiseForKey:@availableItems resolve:resolve reject:reject]; tt[[SKPaymentQueue defaultQueue] restoreCompletedTransactions]; } (void)paymentQueueRestoreCompletedTransactionsFinished:(SKPaymentQueue *)queue {t////////t RESTORE ttNSLog(@nnntpaymentQueue
5
0
3.0k
Oct ’20
Regarding Restore Purchase for In App Purchases
So I have a few renewable monthly subscription based In App Purchases. They rejected my app because it does not implement a 'Restore' function anywhere...however I have it set up so it checks the receipts and refreshes if none found (ie. they may sign into the same device with a different Apple ID then when initially downloading the app) and reverifies it....soo...I do not see where I would place this 'Restore' button because it does not seem like it would ever actually appear. Where would I put this 'Restore' button at within the application? Any luck from any fellow developers that dealt with this issue? I am unable to find any proper documentation from Apple explaining this besides stating 'You need this'
1
0
861
Jan ’22
Problem IOS 14 Purchase buySubscription and Restore Purchases
Hi Guys, I am developing IOS purchases on a physical device. Everything was working fine until I upgrade to IOS 14 version. Device: Physical iPhone 6 IOS: 14 IT iS NOT RESOLVED YET. The problem: Before making a purchase I send to verify the restore purchases with my backend. I check that the user does not have active subscriptions If the user does not have active subscriptions, I will send him to buy a subscription The purchase popup never appears This happens with users who have already made a purchase before. I tried removing the call from the restore purchases and it works fine without this one. RCT_EXPORT_METHOD(getAvailableItems:(RCTPromiseResolveBlock)resolve tttttttttreject:(RCTPromiseRejectBlock)reject) { ttNSLog(@ntgetAvailableItems n ); tt[self addPromiseForKey:@availableItems resolve:resolve reject:reject]; tt[[SKPaymentQueue defaultQueue] restoreCompletedTransactions]; } (void)paymentQueueRestoreCompletedTransactionsFinished:(SKPaymentQueue *)q
0
0
443
Oct ’20
Can't restore purchases on some devices
Hi, we have published a flutter app on the App Store offering additional content via one-time in-app purchases. Everything is working as expected when distributing the app via TestFlight but we're reportedly having issues with users not being able to restore purchases on some devices with the app loaded from the Apple App Store. We noticed the issue when some user were unable to unlock the in-app purchases via promotion codes we supplied for marketing reasons. Most of them were able to unlock the purchases using the promotion codes without a problem. Some had to try several times using a new code each time but for some users (on some of their devices) it's not working at all and we can't seem to find the reason for it. Here is one users case in detail: the user tried to unlock our complete bundle using a promo code first code did not seem to work, so I provided a new code it seems that both codes were redeemed correctly because both of the show up in the users purchase
0
0
191
Jul ’25