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

refactor(fcm): enhance message handling and logging #778

Merged
merged 1 commit into from
Jun 15, 2024
Merged

refactor(fcm): enhance message handling and logging #778

merged 1 commit into from
Jun 15, 2024

Conversation

appleboy
Copy link
Owner

  • Rename notification to messages for clarity
  • Simplify error handling by consolidating error logging and response handling
  • Remove redundant checks and logging for individual tokens
  • Add handling for retrying topic messages
  • Refactor success and error logging for topic messages
  • Ensure failed tokens are retried by appending them to newTokens
  • Clear Topic and Condition fields if no retry is needed

fix #773

- Rename `notification` to `messages` for clarity
- Simplify error handling by consolidating error logging and response handling
- Remove redundant checks and logging for individual tokens
- Add handling for retrying topic messages
- Refactor success and error logging for topic messages
- Ensure failed tokens are retried by appending them to `newTokens`
- Clear `Topic` and `Condition` fields if no retry is needed

Signed-off-by: appleboy <appleboy.tw@gmail.com>
@appleboy appleboy merged commit 07c4319 into master Jun 15, 2024
10 checks passed
@appleboy appleboy deleted the fcm branch June 15, 2024 04:18
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.

Writing error in log, but push send successful
1 participant