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: refactor Android FCM integration and update dependencies #767

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

appleboy
Copy link
Owner

@appleboy appleboy commented May 26, 2024

  • Replace apikey with credential for Android configuration
  • Update tests to reflect the change from apikey to credential
  • Update dependencies in go.mod, including upgrading go-fcm and adding new Firebase and Google Cloud libraries
  • Modify FCM client initialization to use credentials JSON data
  • Refactor notification structure to use firebase.google.com/go/v4/messaging instead of github.com/appleboy/go-fcm
  • Remove unused TimeToLive, CollapseKey, RestrictedPackageName, and DryRun fields from Android notifications
  • Adjust logging and error handling to align with new FCM client responses
  • Update topic handling in notifications to use Topic instead of To
  • Remove redundant checks and simplify notification validation logic

ref : #550

- Replace `apikey` with `credential` for Android configuration
- Update tests to reflect the change from `apikey` to `credential`
- Update dependencies in `go.mod`, including upgrading `go-fcm` and adding new Firebase and Google Cloud libraries
- Modify FCM client initialization to use credentials JSON data
- Refactor notification structure to use `firebase.google.com/go/v4/messaging` instead of `github.com/appleboy/go-fcm`
- Remove unused `TimeToLive`, `CollapseKey`, `RestrictedPackageName`, and `DryRun` fields from Android notifications
- Adjust logging and error handling to align with new FCM client responses
- Update topic handling in notifications to use `Topic` instead of `To`
- Remove redundant checks and simplify notification validation logic

Signed-off-by: appleboy <[email protected]>
@appleboy appleboy merged commit 0122f8f into master Jun 7, 2024
3 of 9 checks passed
@appleboy appleboy deleted the v2 branch June 7, 2024 13:06
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