Add Android push notification delivery#46
Merged
Conversation
Contributor
Author
andremion
marked this pull request as ready for review
July 16, 2026 07:43
andremion
enabled auto-merge (squash)
July 16, 2026 08:05
Contributor
Author
testableapple
approved these changes
Jul 17, 2026
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goal
The Android e2e suite needs to deliver push notifications, which no client network path carries (they arrive through the OS). The iOS side of
/participant/pushusesxcrun simctl push, which only works on iOS simulators. This adds an Android delivery branch to the same endpoint.Implementation
When
/participant/pushreceives acomponentparam (the app's broadcast receiver), it builds the Stream FCM data payload (version,sender,type,message_id,cid,channel_id,channel_type,title,body) and delivers it withadb shell am broadcast. The receiver in the app under test feeds it into the client SDK's real validation and notification path.The
restdegradations mirror the iOS semantics against the Android payload contract:nullandemptydegrade the optional title and body while keeping the routing keys valid (so the push still appears),incorrect_typeandincorrect_dataadd junk badge fields, andinvalid_version/invalid_sender/invalid_typebreak a required key so the client validator drops the push. The iOS branch is unchanged.Testing
Driven by the ported Android push notification e2e tests (
PushNotificationTestsin GetStream/stream-chat-android), all 7 verified locally against this branch on a Pixel 8 API 35 emulator.