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

Payload compatibility for Expo Notifications #572

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

larcho
Copy link
Contributor

@larcho larcho commented Nov 19, 2024

This might a bit too Expo specific but the approach isn't bad IMO. Expo offers a API for sending push notifications to Android and iOS without having to worry about APN certificates or Firebase credentials. Because of that, Expo standardizes the payload a little and shoves anything custom to a property called body to avoid interference with Expo own properties.

@larcho larcho marked this pull request as ready for review November 19, 2024 17:34
@larcho larcho closed this Nov 19, 2024
@larcho larcho reopened this Nov 19, 2024
@dangeross dangeross self-requested a review November 19, 2024 19:36
Copy link
Collaborator

@dangeross dangeross left a comment

Choose a reason for hiding this comment

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

LGTM, so we can handle Expo and Firebase payloads by default.

It is the responsibility of the app developer to implement the same for Android, but we should update the docs to support it.
https://sdk-doc-liquid.breez.technology/notifications/android_plugin.html#integrate-the-notification-plugin

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