-
Notifications
You must be signed in to change notification settings - Fork 798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolved repurchasing a non-consumable not calling completion, on macOS. #105
Conversation
Fixed an issue, discovered on OSX, where when a user attempts to repurchase a non-consumable IAP, the 'purchase' completion block is never called.
@Megatron1000 Thank you for the PR! I will be doing some testing on iOS in due course and verify if some changes are needed to make this work on all platforms. |
this is also an issue on iOS. if the user already purchased a specific product, but the |
# Conflicts: # SwiftyStoreKit/InAppProductPurchaseRequest.swift # SwiftyStoreKit/SwiftyStoreKit.swift
sorry, seems my issue is related to SKPaymentTransactionObserver and not to the library itself. after some debugging, it seems the dialog |
I prefer adding THIS change to replace new line 146 of InAppProductPurchaseRequest.swift: With this modification, when you go to purchase a previously-purchased product, it returns in the same way as a new purchase would return (since the calling software doesn't need to distinguish between these two cases -- it just needs to know success or failure). I found the callbacks were getting messed up without this change. |
This PR is outdated following upcoming changes to the purchase flows in SwiftyStoreKit. See new PR: #131 @Megatron1000 @doffen @aporat Could anyone test the new PR on macOS? |
@Megatron1000 @doffen @aporat Can you test if the required functionality works correctly on version 0.7.0? If this issue is not updated in the next few weeks it will be closed. |
Sorry, I’m not able to test it. I forked my own version of the code, which I’m using only with XCode 7.3.1.
Dave Offen
From: Andrea Bizzotto [mailto:notifications@github.com]
Sent: Saturday, February 04, 2017 2:20 PM
To: bizz84/SwiftyStoreKit
Cc: doffen; Mention
Subject: Re: [bizz84/SwiftyStoreKit] Resolved repurchasing a non-consumable not calling completion, on macOS. (#105)
@Megatron1000 <https://github.com/Megatron1000> @doffen <https://github.com/doffen> @aporat <https://github.com/aporat> Can you test if the required functionality works correctly on version 0.7.0? If this issue is not updated in the next few weeks it will be closed.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#105 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AIIXdlV0d8-0dVe05G7CBKhANjCIrW_dks5rZPmKgaJpZM4KviGL> . <https://github.com/notifications/beacon/AIIXdoh26-2VWD3O_CmNAnk7sH96AM6rks5rZPmKgaJpZM4KviGL.gif>
|
I'm going to close this MR as the code has changed significantly since version 0.7.0. If you still experience problems, please open a new issue. |
@bizz84 On OSX, I have updated to 0.10.2. unfortunely, The issue still exist. |
I also had this same issue. #98
On OSX at least, when you attempt to make a payment for a non-consumable product that's already been purchased by that account the transaction result comes back as a restore. Because of the if condition in the restore case, the transaction transactionResults would never get updated.
I've only tested this on OSX, so I can't comment on the behaviour on iOS, but from reading the code I can't see the point in the isPurchaseRequest boolean. I've reduced the protection so all it does now is avoid doing anything with non matching products identifiers, only when you're purchasing, not restoring.