-
Notifications
You must be signed in to change notification settings - Fork 796
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
Returning an error when switching to another subscription plan within the same group #269
Comments
I have the same problem. When I buy the different in-app-purchase in the same group with SwiftyStoreKit.purchaseProduct, it shows the error. |
I can confirm this on my end and wanted to add some additional debugging information:
Is there any progress on this? |
May be related to #78. I'm not familiar with subscription groups. Perhaps someone has implemented this before and could give some help? |
Hey guys, I was puzzled also with this scenario. My case (two subscriptions)
StoreKit alerts
What is happening in StoreKit? Back to SwiftyStoreKit
Process Transaction works with SKPaymentTransaction which is focused on Payments. **Example from @gapl ** Conclusion UI/UX User related expecatations
You should verify the receipt periodically and this shouldn't be a problem. When yearly becomes active, it will be refreshed in your app (by you) and the new subscription will be shown to your user, together with the appropriate features based on your logic. @bizz84 If you manage to dig up some contextual info in the error that could specify more closely this case, let me know. It could help with displaying a more precise alert to our users and a nicer usage flow . |
Apologies for the late reply everyone. @mvitas the scenario you're describing seems similar to this: So, it's expected that the transaction will be StoreKit returns this error: Error Domain=SKErrorDomain Code=2 “Cannot connect to iTunes Store” UserInfo=0x6083900 {NSLocalizedDescription=Cannot connect to iTunes Store} This is quite generic so I don't think SwiftyStoreKit can be clever enough here (really, there should be a specific error case in StoreKit for this). If your app lets users migrate across subscriptions, your best bet is to verify the receipt when new transactions are finished (you can do that in the completion block of |
This issue is actually a duplicate of #125. |
Platform
In app purchase type
Environment
Version
0.10.7
Related issues
Report
Issue summary
When the subscription changes to another plan, it returns unknown-error.
Steps to reproduce
What did you expect to happen
it returns success
What happened instead
it returns an error
Recently, Apple added a feature the user can change their subscription plan within the same group.
But it seems like this library doesn't cover the case.
Please fix this!
The text was updated successfully, but these errors were encountered: