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

Fix bug caused by workaround for watchOS sandbox receipts being stored at wrong path #330

Merged
merged 1 commit into from
Sep 4, 2020

Conversation

dylanmaryk
Copy link
Contributor

The fix in #263 that was discussed in #207 now itself causes a bug when using sandbox on watchOS 7 as of beta 7. The bug that this workaround was added for appears to no longer occur, as when I remove the workaround, the receipt data is successfully retrieved.

DEBUG: Loaded receipt from file:///private/var/mobile/Containers/Data/PluginKitPlugin/DC8F7577-9BE0-4A54-81CE-0CECB386EC5C/StoreKit/sandboxReceipt
DEBUG: POST /v1/receipts
DEBUG: POST /v1/receipts 200

However, when the workaround is left in, retrieving the receipt data fails.

DEBUG: Loaded receipt from file:/private/var/mobile/Containers/Data/PluginKitPlugin/D857C0D0-2739-4D9B-A011-144948BC8274/StoreKit/receipt
DEBUG: Receipt empty, fetching
DEBUG: GET /v1/subscribers/$RCAnonymousID:d9e6c1c36cff458e9375cb846413128e 200
DEBUG: Loaded receipt from file:/private/var/mobile/Containers/Data/PluginKitPlugin/D857C0D0-2739-4D9B-A011-144948BC8274/StoreKit/receipt
INFO: Unable to load receipt, ensure you are logged in to the correct iTunes account.
ERROR: The receipt is missing.

Therefore, I have added a check for the watchOS version. Only if it is below 7.0.0 will the workaround be applied. Otherwise, the workaround will not be used.

@aboedo aboedo self-assigned this Sep 4, 2020
Copy link
Member

@aboedo aboedo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! Thanks so much for reporting and for posting the fix 🙌 🎉 ! I'm glad to see this finally got fixed in watchOS.

@aboedo aboedo merged commit 7a7c6ad into RevenueCat:develop Sep 4, 2020
@aboedo aboedo added this to the 3.7.0 milestone Sep 4, 2020
aboedo pushed a commit that referenced this pull request Sep 10, 2020
@aboedo aboedo mentioned this pull request Sep 10, 2020
@aboedo aboedo modified the milestones: 3.7.0, 3.6.0 Sep 16, 2020
@aboedo aboedo mentioned this pull request Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants