Skip to content

Add Android push notification delivery#46

Merged
andremion merged 4 commits into
mainfrom
add-android-push-delivery
Jul 17, 2026
Merged

Add Android push notification delivery#46
andremion merged 4 commits into
mainfrom
add-android-push-delivery

Conversation

@andremion

Copy link
Copy Markdown
Contributor

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/push uses xcrun simctl push, which only works on iOS simulators. This adds an Android delivery branch to the same endpoint.

Implementation

When /participant/push receives a component param (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 with adb shell am broadcast. The receiver in the app under test feeds it into the client SDK's real validation and notification path.

The rest degradations mirror the iOS semantics against the Android payload contract: null and empty degrade the optional title and body while keeping the routing keys valid (so the push still appears), incorrect_type and incorrect_data add junk badge fields, and invalid_version/invalid_sender/invalid_type break 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 (PushNotificationTests in GetStream/stream-chat-android), all 7 verified locally against this branch on a Pixel 8 API 35 emulator.

@andremion

andremion commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

Started e2e tests on this branch:

@andremion
andremion marked this pull request as ready for review July 16, 2026 07:43
@andremion
andremion requested a review from testableapple July 16, 2026 07:48
@andremion
andremion enabled auto-merge (squash) July 16, 2026 08:05
Comment thread src/robots/participant.rb Outdated
Comment thread src/robots/participant.rb
@andremion

Copy link
Copy Markdown
Contributor Author

Re-ran e2e after updating this branch with main, which now includes the truncation flake fix (#48):

@andremion
andremion merged commit 6094d35 into main Jul 17, 2026
4 checks passed
@andremion
andremion deleted the add-android-push-delivery branch July 17, 2026 13:28
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.

2 participants