Skip to content
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

Should localReceiptData be updated when a Subscription auto renews? #603

Open
chamitha opened this issue Dec 15, 2020 · 4 comments
Open

Comments

@chamitha
Copy link

Question

I am testing auto-renewing subscriptions in the Sandbox and have noticed that my SwiftyStoreKit.completeTransactions completion handler in AppDelegate is invoked with a purchased state as expected when a subscription auto renews BUT subsequently the SwiftyStoreKit.localReceiptData property seems to not have been updated as SwiftyStoreKit.verifySubscription returns a status of expired with the old subscription expiry date. Is this expected?
Of course if I were to refresh the receipt (using either fetchReceipt or verifyReceipt with forceRefresh) the latest (renewed and active) subscription is received.

@Reiszecke
Copy link

Hey, have you managed to find a way there? Was this resolved? Is simply calling fetchReceipt each time this happens a solution?

@chamitha
Copy link
Author

Hey, have you managed to find a way there? Was this resolved? Is simply calling fetchReceipt each time this happens a solution?

@Reiszecke Yes, I did end up calling fetchReceipt(forceRefresh: true)

@Reiszecke
Copy link

@chamitha thank you for responding. If you can take 3 more minutes of your spare time:

@chamitha
Copy link
Author

chamitha commented Oct 16, 2021

@Reiszecke

  • do you get prompted an AppleID-signin when doing that?

Yes, fetchReceipt(forceRefresh: true) will prompt for sign-in if not already done so. But I don't thinkSwiftyStoreKit.completeTransactions is called when not signed-in? In which case no one will be prompted.

  • merchantkit takes into account 30 days of App Store delay with the receipts - do you also experience that issue?

I haven't used merchantkit.

I can't say for sure. I have since migrated to manage in app purchases server side so these issues have dropped off my radar. Sorry I can't be of more help 😞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants