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

feat: Add FCM option resolveUnhandledClientError to resolve or reject push promise on FCM server response GOAWAY #341

Merged
merged 11 commits into from
Dec 14, 2024

Conversation

mtrezza
Copy link
Member

@mtrezza mtrezza commented Dec 14, 2024

New Pull Request Checklist

Issue Description

Closes: #340

Approach

  • Wrap push sending into try/catch block as firebase-admin client throws instead of rejecting promise.
  • Add new FCM option resolveUnhandledClientError that allows to customize whether client errors should be gracefully resolved (set to true), or lead to a promise rejection for the caller to indicate that sending the push failed (set to false). Default is false.

TODOs before merging

  • Add tests

Copy link

parse-github-assistant bot commented Dec 14, 2024

Thanks for opening this pull request!

  • 🎉 We are excited about your hands-on contribution!

@mtrezza mtrezza changed the title fix: Unhandled exception on FCM server response GOAWAY feat: Add FCM option resolveUnhandledClientError to handle client error on FCM server response GOAWAY Dec 14, 2024
@mtrezza mtrezza changed the title feat: Add FCM option resolveUnhandledClientError to handle client error on FCM server response GOAWAY feat: Add FCM option resolveUnhandledClientError to resolve or reject push promise on FCM server response GOAWAY Dec 14, 2024
@mtrezza mtrezza merged commit 6d72f8a into parse-community:master Dec 14, 2024
6 checks passed
parseplatformorg pushed a commit that referenced this pull request Dec 14, 2024
# [6.8.0](6.7.1...6.8.0) (2024-12-14)

### Features

* Add FCM option `resolveUnhandledClientError` to resolve or reject push promise on FCM server response GOAWAY ([#341](#341)) ([6d72f8a](6d72f8a))
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 6.8.0

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

Successfully merging this pull request may close these issues.

Parse Server crash on FCM response GOAWAY
2 participants