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

extracts readableErrorCode to userInfo #268

Merged
merged 3 commits into from Jul 21, 2021
Merged

Conversation

vegaro
Copy link
Contributor

@vegaro vegaro commented Jun 24, 2021

readableErrorCode is inside the UserInfo of the error and not in the root of the object. When rejecting in React Native there's no way to pass anything else than a code, a message and an NSError. We were assuming readableErrorCode is in the root of the Error object, but it's actually in the user info property.

This PR depends on this other PR.

Should fix #266

@vegaro vegaro marked this pull request as draft June 24, 2021 23:36
@vegaro
Copy link
Contributor Author

vegaro commented Jun 28, 2021

RevenueCat/purchases-hybrid-common#82 has been merged, but not deployed yet so holding on this one

@aboedo
Copy link
Member

aboedo commented Jul 19, 2021

@vegaro purchases-hybrid-common update has been released, so this should be ready to go

@vegaro vegaro marked this pull request as ready for review July 21, 2021 13:45
@vegaro vegaro requested a review from aboedo July 21, 2021 13:49
@vegaro vegaro merged commit e3945fb into develop Jul 21, 2021
@vegaro vegaro deleted the fix-readable-error-code branch July 21, 2021 16:01
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.

"Purchase was cancelled" Error not correctly encoded
2 participants