Skip to content

Fix/missing native error codes - #49

Merged
StanislavMayorov merged 2 commits into
devfrom
fix/missing-native-error-codes
Nov 5, 2026
Merged

StanislavMayorov merged 2 commits into
devfrom
fix/missing-native-error-codes

Conversation

@StanislavMayorov

Copy link
Copy Markdown
Collaborator

No description provided.

iOS 4.3.2 codes 2, 1020, 1030, 1050, 1060 (billingPlanUnavailable), 3020
and Android 4.3.x codes 3020, 4104-4107 reached JS with no name: getErrorCode
did not know them and comparing adaptyCode with them was a type error.
ErrorCode becomes KnownErrorCode | (number & {}): known codes still
autocomplete, and comparing adaptyCode with a code that a newer native SDK
sends is no longer a type error. Add isKnownErrorCode, getErrorCodeName and
AdaptyError.codeName; an unknown code is shown as "(unknown code)" instead of
"(undefined)" in the error message, and getErrorPrompt no longer casts.
@StanislavMayorov

Copy link
Copy Markdown
Collaborator Author

@codex

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T19:43:39.426887Z dd2acc7 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: dd2acc7b68

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@StanislavMayorov
StanislavMayorov merged commit e911396 into dev Nov 5, 2026
3 checks passed
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.

1 participant