FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat(fcm): Add support for AndroidConfigV2 by jonathanedey · Pull Request #968 · firebase/firebase-admin-python · GitHub

Repository navigation

feat(fcm): Add support for AndroidConfigV2 - #968

Open
jonathanedey wants to merge 6 commits into
mainfrom
je-fcm-v2
Open

jonathanedey wants to merge 6 commits into
mainfrom
je-fcm-v2

Conversation

Copy link
Copy Markdown
Contributor

This change implements support for the Android v2 API and it deprecates v1 AndroidConfig structures and replaces them with the new AndroidConfigV2 structures.

Adds AndroidConfigV2, AndroidNotificationV2, AndroidRemoteNotification, and AndroidBackgroundSyncMessage data classes.
Deprecates AndroidConfig and AndroidNotification.

gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Code Review

This pull request introduces V2 configurations for Android messaging in the Firebase Admin Python SDK, including AndroidConfigV2, AndroidNotificationV2, AndroidRemoteNotification, and AndroidBackgroundSyncMessage, while deprecating the older V1 equivalents. The feedback highlights an issue where vibrate_timings_millis is documented to support datetime.timedelta instances, but the implementation only validates numbers. To resolve this, the reviewer suggests adding a helper method to validate both types, updating the encoder, and adjusting the test suite to verify this behavior.

Comment thread firebase_admin/_messaging_encoder.py Resolved
Comment thread firebase_admin/_messaging_encoder.py Resolved
Comment thread tests/test_messaging.py Resolved
Comment thread tests/test_messaging.py Resolved

Copy link
Copy Markdown
Contributor Author

/gemini review

gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Code Review

This pull request introduces the new AndroidConfigV2 and its associated V2 classes (AndroidNotificationV2, AndroidRemoteNotification, and AndroidBackgroundSyncMessage) to the FCM messaging module, while deprecating the older AndroidConfig and AndroidNotification implementations. It includes comprehensive encoding, validation logic, and unit tests. The review feedback highlights a few validation improvements: specifically, explicitly rejecting boolean values in check_vibrate_timings (since Python treats bool as a subclass of int/numbers.Number) and ensuring that all boolean fields in AndroidNotificationV2 are properly validated using _Validators.check_boolean.

Comment thread firebase_admin/_messaging_encoder.py Resolved
Comment thread firebase_admin/_messaging_encoder.py Resolved
Comment thread firebase_admin/_messaging_encoder.py Resolved
jonathanedey changed the title WIP feat(fcm): Add support for AndroidConfigV2 feat(fcm): Add support for AndroidConfigV2 Sep 16, 2026
jonathanedey added release-note release:stage Stage a release candidate labels Sep 16, 2026
jonathanedey marked this pull request as ready for review September 16, 2026 23:07
jonathanedey requested a review from a team September 16, 2026 23:07

This branch has not been deployed

No deployments
This file contains hidden or 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:stage Stage a release candidate release-note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL