Skip to content

Commit

Permalink
Add ExpoError, DeveloperError, and ProviderError codes to ExpoPushSuc…
Browse files Browse the repository at this point in the history
…cessReceipt (#55)

These are additional possible error codes when a more precise error code is unavailable.

---------

Co-authored-by: James Ide <ide@expo.dev>
  • Loading branch information
25khattab and ide authored Mar 20, 2024
1 parent 330a295 commit 0fa2e0e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/ExpoClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,14 @@ export type ExpoPushErrorReceipt = {
status: 'error';
message: string;
details?: {
error?: 'DeviceNotRegistered' | 'InvalidCredentials' | 'MessageTooBig' | 'MessageRateExceeded';
error?:
| 'DeveloperError'
| 'DeviceNotRegistered'
| 'ExpoError'
| 'InvalidCredentials'
| 'MessageRateExceeded'
| 'MessageTooBig'
| 'ProviderError';
};
// Internal field used only by developers working on Expo
__debug?: any;
Expand Down

0 comments on commit 0fa2e0e

Please sign in to comment.