Search results for

“restore purchases”

22,021 results found

Post

Replies

Boosts

Views

Activity

Reply to In-app purchases for 100s of digital product?
Create a consumable IAP called 'credits'. Allow the user to purchase them in quantity 1-100 each for $0.99. (Or sell them in discount packages.) Retain the number of credits the user has purchased. Allow the user to select a course and debit the user's credits by an appropriate amount based on course and subscription status.Because these are really 'non-consumable' IAPs you may need to create some method of allowing the user to restore their 'purchases' on other devices. You could use the user's iCloud key-value file for that.
Topic: App & System Services SubTopic: StoreKit Tags:
Mar ’20
Do require restore solution for consume item?
I making game.I write in-app-purchase code.https://support.apple.com/ko-kr/ht202023https://support.apple.com/en-us/HT202023Look at this link. Not necessary restore solutoin as Consume item?I do not make restore solution server. No money, No time.I sell coin.Only coin. Many kind of coin, 1000_coin, 2000_coin, 5000_coin....User buy the item, character Number of usage rights( ex: 100 coin - 1 use, 500 coin - 5 use...).Do require restore solution for consume item?
1
0
317
Jun ’18
Reply to Connecting iOS In-App purchases to server's user account
Thanks for your response PBK. Regarding the last issue about users who own both an Android and iOS device (not an unthinkable scenario). I don't really see an issue here. Since all the purchases are stored in my database, a user who purchases on iOS can restore on Android and vice versa. Or maybe you're thinking that Apple might object to Android users being able to use the iOS app without using IAP?
Topic: App & System Services SubTopic: StoreKit Tags:
Jul ’17
Reply to Handling pending consumable transaction
Not quite. There was only one change of state to purchased and that happened soon after the customer chose to purchase. But the point is that at that moment the purchase was not actually confirmed, it was only pending. It was 9 hours later when the transaction changed from pending to confirmed. That is the moment when it would be reasonable to expect the app payment queue to receive the notification rather than when it did.As per recommended practice, I'm calling finishTransaction only for purchased/failed/restored states (although restored isn't applicable anyway for consumables). I'm aware that the inapp data only contains unfinished purchases (which is why it is useful for adding the purchase to an online account) but I can see there is a timing risk if Apple's server doesn't respond instantly. Since the app finishes the transaction when it receives the 200 OK response from my server, that could possibly cause that purchase to
Topic: App & System Services SubTopic: StoreKit Tags:
Nov ’19
Reply to Auto-renewable purchases failing randomly
Thank you for your answer.That's an interesting point, even because it seems we don't set-up and observer. Our code is a modified version of iapHandler.swift from github: https://gist.github.com/DejanEnspyra/54667682eaa3ab9e1d37bd45f2bc1f3aI'll investigate with my coworker why we don't follow this:https://developer.apple.com/documentation/storekit/in-app_purchase/setting_up_the_transaction_observer_and_payment_queueAbout the restore: the procedure is available to the users and it works. But not for the users that are experiencing the problem with the purchase. For them the restore button doesn't work as well.
Topic: App & System Services SubTopic: StoreKit Tags:
Feb ’19
in app purchase
Hello World,I have a problem inserting in-app purchases into my app.This is the first time I'm interested in this kind of code and I have some problems.I would like to have a non-consumable purchase and a consumable purchase. But, I inserted a button for the non-consumable, and it always sends me back to the consumable purchase ...In addition I coded a button to restore non-consumable purchases but when I click on it, he considers that I made my purchases while not ...Here is the code I used. If you have an easier way to code a non-consumable purchase, I'm interested.Thank you in advance for your help. let coins2_PRODUCT_ID = com.company.Deri.PubsConso let PREMIUM_PRODUCT_ID = com.company.Deri.Pubs var productID = var productsRequest = SKProductsRequest() var iapProducts = [SKProduct]() var nonConsumablePurchaseMade7 = UserDefaults.standard.bool(forKey: nonConsumablePurchaseMade7) var coins2 = UserDefaults.standard.integer(forKey: coins2
9
0
1.7k
Dec ’17
StoreKit issue with purchase
I can purchase fine and restore works as well (tested by completely deleting app then re-installing). However, when I install app and then click purchase (previously already purchased) and call SKPaymentQueue.default().add(payment) all screens for purchase come up but no movement to the paymentQueuest function I have being triggered. I cannot see any transaction status change. It is as if it stops. Now of course I am only completing this in sandbox and have not submitted app yet. I can try exact same steps but then cancel purchase and get the : Payment completed with error: Error .... Again there is not return or function called. I even had to create my own restore process cause the func paymentQueue(_ queue: SKPaymentQueue, updatedTransactions transactions: [SKPaymentTransaction]) {} is never called only the func paymentQueueRestoreCompletedTransactionsFinished(_ queue: SKPaymentQueue) {} when I use SKPaymentQueue.default().add(self) SKPaymentQue
0
0
721
Feb ’23
Reply to Do we still need "Restore purchases" button with app receipt mechanism?
New transactions are sent to all devices that originally purchase or subsequently restore an autorenewable subscription. In a restoreCompletedTransaction the original transaction.transactionIdentifier is unique but it is not in the receipt.I never tested the various transactionIdentifiers for renewals but I believe (never tested, just surmise): The transaction.transactionIdentifier in updatedTransactions is unique for each device. It is, however, NOT necessarily in the receipt - What is in the receipt is the transactionIdentifier that went to the purchasing device
Topic: App & System Services SubTopic: StoreKit Tags:
Mar ’17
State restoration for UIViewControllerRepresentable
I'm trying to implement state restoration for my app which includes UIKit and SwiftUI codes. My SwiftUI Views could be preserved while entering background and restored after app start, but the UIViewControllerRepresentable view inside SwiftUI View can only be initialized but not preserved and restored through UIViewController's encodeRestorableState(with:) and decodeRestorableState(with:). Is there any way to make it work? Thanks for any help~
0
0
292
Jun ’22
How to know if a product has been purchased
Hi guys.Apple is asking me that if a Non-Consumable product has been purchased by a user and the user decides to delete and reinstall the App, then I must present a Restore instead than Buy button.To check if a product has been purchased I am using NSUserDefaults, like this: public init(productIds: Set<ProductIdentifier>) { self.productIdentifiers = productIds for productIdentifier in productIds { let purchased = NSUserDefaults.standardUserDefaults().boolForKey(productIdentifier) if purchased { purchasedProductIdentifiers.insert(productIdentifier) print(Previously purchased: (productIdentifier)) } else { print(Not purchased: (productIdentifier)) } } super.init() SKPaymentQueue.defaultQueue().addTransactionObserver(self) }But, if the user deletes the App, this information is lost.So, Is there anyway to ask to SKPayment if a product has been purchase? I guess there is because they are asking me that. But I didnt find it.
4
0
2.6k
Jun ’16
Reply to Using consumables for purchasing an indeterminate number of digital goods
You may have trouble getting a response from App Review of a prospective business plan. It has been reported that the only proceudre is to submit the app and hope it is accepted. There are 'clear' 'app store review guidelines' and your proposal seems, IMHO, to satisfy those guidelines. One might argue that the purchase should be 'restore able' to other devices owned by the user since it is 'sort of' a non-consumable item sold through a pathway that does not allow restore through 'restoreCompletedTransactions. So I would implement a 'restore' function through your website (or using the user's iCloud key-value file) and add a note to app review when you submit the app indicating why you chose a 'consumable' IAP and how it is restore-able even though it is a consumable.
Topic: App & System Services SubTopic: StoreKit Tags:
Jul ’15
Restor xcode project
Hello,I have a big problem since the restoration of my macbook pro.I restored it in factory mode and copy my xcode folder. But since I can not open my xcode projects properly ... my .swift files are red and can not be opened from xcode. Yet when I open them in the folder I can read the program.Thanks for your help.
2
0
596
Feb ’18
Reply to In-app purchases for 100s of digital product?
Create a consumable IAP called 'credits'. Allow the user to purchase them in quantity 1-100 each for $0.99. (Or sell them in discount packages.) Retain the number of credits the user has purchased. Allow the user to select a course and debit the user's credits by an appropriate amount based on course and subscription status.Because these are really 'non-consumable' IAPs you may need to create some method of allowing the user to restore their 'purchases' on other devices. You could use the user's iCloud key-value file for that.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Mar ’20
Do require restore solution for consume item?
I making game.I write in-app-purchase code.https://support.apple.com/ko-kr/ht202023https://support.apple.com/en-us/HT202023Look at this link. Not necessary restore solutoin as Consume item?I do not make restore solution server. No money, No time.I sell coin.Only coin. Many kind of coin, 1000_coin, 2000_coin, 5000_coin....User buy the item, character Number of usage rights( ex: 100 coin - 1 use, 500 coin - 5 use...).Do require restore solution for consume item?
Replies
1
Boosts
0
Views
317
Activity
Jun ’18
Reply to Connecting iOS In-App purchases to server's user account
Thanks for your response PBK. Regarding the last issue about users who own both an Android and iOS device (not an unthinkable scenario). I don't really see an issue here. Since all the purchases are stored in my database, a user who purchases on iOS can restore on Android and vice versa. Or maybe you're thinking that Apple might object to Android users being able to use the iOS app without using IAP?
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Jul ’17
Reply to How to replace in-app purchase in my app?
As long as the product identifier is not changed between the old and new versions, users will not have to repurchase it. You should also add some code that reads the timestamp of the purchase, so that you will be able to tell if a user has the updated content or if the new one needs to be restored to the device.
Replies
Boosts
Views
Activity
Aug ’15
Reply to App approved & live, but IAP still “In Review” – users can’t upgrade
IHello App Review Team, Thank you for your help. I can confirm the in-app purchase is now available and working correctly in the app, and the upgrade/restore flow functions as expected. I appreciate your time and assistance. Best regards, Magnus
Replies
Boosts
Views
Activity
Feb ’26
Reply to Handling pending consumable transaction
Not quite. There was only one change of state to purchased and that happened soon after the customer chose to purchase. But the point is that at that moment the purchase was not actually confirmed, it was only pending. It was 9 hours later when the transaction changed from pending to confirmed. That is the moment when it would be reasonable to expect the app payment queue to receive the notification rather than when it did.As per recommended practice, I'm calling finishTransaction only for purchased/failed/restored states (although restored isn't applicable anyway for consumables). I'm aware that the inapp data only contains unfinished purchases (which is why it is useful for adding the purchase to an online account) but I can see there is a timing risk if Apple's server doesn't respond instantly. Since the app finishes the transaction when it receives the 200 OK response from my server, that could possibly cause that purchase to
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Nov ’19
Reply to Auto-renewable purchases failing randomly
Thank you for your answer.That's an interesting point, even because it seems we don't set-up and observer. Our code is a modified version of iapHandler.swift from github: https://gist.github.com/DejanEnspyra/54667682eaa3ab9e1d37bd45f2bc1f3aI'll investigate with my coworker why we don't follow this:https://developer.apple.com/documentation/storekit/in-app_purchase/setting_up_the_transaction_observer_and_payment_queueAbout the restore: the procedure is available to the users and it works. But not for the users that are experiencing the problem with the purchase. For them the restore button doesn't work as well.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Feb ’19
in app purchase
Hello World,I have a problem inserting in-app purchases into my app.This is the first time I'm interested in this kind of code and I have some problems.I would like to have a non-consumable purchase and a consumable purchase. But, I inserted a button for the non-consumable, and it always sends me back to the consumable purchase ...In addition I coded a button to restore non-consumable purchases but when I click on it, he considers that I made my purchases while not ...Here is the code I used. If you have an easier way to code a non-consumable purchase, I'm interested.Thank you in advance for your help. let coins2_PRODUCT_ID = com.company.Deri.PubsConso let PREMIUM_PRODUCT_ID = com.company.Deri.Pubs var productID = var productsRequest = SKProductsRequest() var iapProducts = [SKProduct]() var nonConsumablePurchaseMade7 = UserDefaults.standard.bool(forKey: nonConsumablePurchaseMade7) var coins2 = UserDefaults.standard.integer(forKey: coins2
Replies
9
Boosts
0
Views
1.7k
Activity
Dec ’17
StoreKit issue with purchase
I can purchase fine and restore works as well (tested by completely deleting app then re-installing). However, when I install app and then click purchase (previously already purchased) and call SKPaymentQueue.default().add(payment) all screens for purchase come up but no movement to the paymentQueuest function I have being triggered. I cannot see any transaction status change. It is as if it stops. Now of course I am only completing this in sandbox and have not submitted app yet. I can try exact same steps but then cancel purchase and get the : Payment completed with error: Error .... Again there is not return or function called. I even had to create my own restore process cause the func paymentQueue(_ queue: SKPaymentQueue, updatedTransactions transactions: [SKPaymentTransaction]) {} is never called only the func paymentQueueRestoreCompletedTransactionsFinished(_ queue: SKPaymentQueue) {} when I use SKPaymentQueue.default().add(self) SKPaymentQue
Replies
0
Boosts
0
Views
721
Activity
Feb ’23
Reply to Do we still need "Restore purchases" button with app receipt mechanism?
New transactions are sent to all devices that originally purchase or subsequently restore an autorenewable subscription. In a restoreCompletedTransaction the original transaction.transactionIdentifier is unique but it is not in the receipt.I never tested the various transactionIdentifiers for renewals but I believe (never tested, just surmise): The transaction.transactionIdentifier in updatedTransactions is unique for each device. It is, however, NOT necessarily in the receipt - What is in the receipt is the transactionIdentifier that went to the purchasing device
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Mar ’17
Reply to Dealing with IAP Purchase Restore
If your app is 10 years old, then maybe you need to update your App Store logic. From what I understand, having a receipt is not 100% guaranteed anymore. So if that is your history of purchases, you may not have it until the user clicks on the Restore button.
Replies
Boosts
Views
Activity
Aug ’25
State restoration for UIViewControllerRepresentable
I'm trying to implement state restoration for my app which includes UIKit and SwiftUI codes. My SwiftUI Views could be preserved while entering background and restored after app start, but the UIViewControllerRepresentable view inside SwiftUI View can only be initialized but not preserved and restored through UIViewController's encodeRestorableState(with:) and decodeRestorableState(with:). Is there any way to make it work? Thanks for any help~
Replies
0
Boosts
0
Views
292
Activity
Jun ’22
How to know if a product has been purchased
Hi guys.Apple is asking me that if a Non-Consumable product has been purchased by a user and the user decides to delete and reinstall the App, then I must present a Restore instead than Buy button.To check if a product has been purchased I am using NSUserDefaults, like this: public init(productIds: Set<ProductIdentifier>) { self.productIdentifiers = productIds for productIdentifier in productIds { let purchased = NSUserDefaults.standardUserDefaults().boolForKey(productIdentifier) if purchased { purchasedProductIdentifiers.insert(productIdentifier) print(Previously purchased: (productIdentifier)) } else { print(Not purchased: (productIdentifier)) } } super.init() SKPaymentQueue.defaultQueue().addTransactionObserver(self) }But, if the user deletes the App, this information is lost.So, Is there anyway to ask to SKPayment if a product has been purchase? I guess there is because they are asking me that. But I didnt find it.
Replies
4
Boosts
0
Views
2.6k
Activity
Jun ’16
Reply to Using consumables for purchasing an indeterminate number of digital goods
You may have trouble getting a response from App Review of a prospective business plan. It has been reported that the only proceudre is to submit the app and hope it is accepted. There are 'clear' 'app store review guidelines' and your proposal seems, IMHO, to satisfy those guidelines. One might argue that the purchase should be 'restore able' to other devices owned by the user since it is 'sort of' a non-consumable item sold through a pathway that does not allow restore through 'restoreCompletedTransactions. So I would implement a 'restore' function through your website (or using the user's iCloud key-value file) and add a note to app review when you submit the app indicating why you chose a 'consumable' IAP and how it is restore-able even though it is a consumable.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Jul ’15
Restor xcode project
Hello,I have a big problem since the restoration of my macbook pro.I restored it in factory mode and copy my xcode folder. But since I can not open my xcode projects properly ... my .swift files are red and can not be opened from xcode. Yet when I open them in the folder I can read the program.Thanks for your help.
Replies
2
Boosts
0
Views
596
Activity
Feb ’18