-
-
Notifications
You must be signed in to change notification settings - Fork 831
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: refactor FCM client initialization and configuration
- Update Android flag variables to include `KeyPath` and `Credential` - Add conditional check and assignment for `KeyPath` in the main function - Change `req.To` to `req.Topic` for FCM topic assignment - Simplify FCM client initialization by removing the key parameter and using options - Add `Topic` field to `PushNotification` struct and remove duplicate `Topic` field - Modify FCM client initialization to handle both `KeyPath` and `Credential` - Update test for FCM client initialization to reflect changes in configuration handling Signed-off-by: appleboy <appleboy.tw@gmail.com>
- Loading branch information
Showing
4 changed files
with
28 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters