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

Push notifications handling guide #527

Closed
6 tasks done
neekolas opened this issue Feb 21, 2024 · 1 comment
Closed
6 tasks done

Push notifications handling guide #527

neekolas opened this issue Feb 21, 2024 · 1 comment
Assignees

Comments

@neekolas
Copy link
Contributor

neekolas commented Feb 21, 2024

We need to provide some resources for devs around push notification handling. We also need to expose methods for actually taking in the push notifications when they are received by the notification extension.

Topics

Welcome topics have the format:

`/xmtp/mls/1/w-${hexEncode(installationId)}/proto`

Group message topics have the format:

`/xmtp/mls/1/g-${hexEncode(groupId)}/proto`

Clients should listen to these topics and then decode the payloads.

Payload types

What to do with messages

  • Once payloads have been decoded from the push notification callers can pass them to process_streamed_welcome_message and process_streamed_group_message in our SDKs (these functions are not exposed outside of Rust).

Tasks

@nplasterer
Copy link
Contributor

Would be nice to have a example running in RN for this but going to push this down in priority in favor of the HMAC work for now. PR started here: xmtp/xmtp-react-native#347

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

3 participants