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

Group Chat Push notifications #730

Open
nplasterer opened this issue May 2, 2024 · 2 comments
Open

Group Chat Push notifications #730

nplasterer opened this issue May 2, 2024 · 2 comments
Assignees
Labels
documentation Documentation and other content group chat

Comments

@nplasterer
Copy link
Contributor

Push notifications work nearly the same as V2. You will still subscribe to the topic the same way but HMACs are not currently supported. You'll also want to subscribe to the new welcome topic to make sure you get new group chats. /xmtp/mls/1/w-$installationId/proto or use the convinence methods in the code Kotlin -> Topic.userWelcome(installationId)

The new things are

  • installationId which you can now get on the client by calling client.installationId
  • how to decrypt the message. Now call group.processMessage(encryptedMessageData).decode()

Example push notification server here: https://github.com/xmtp/xmtp-android/blob/main/example/src/main/java/org/xmtp/android/example/pushnotifications/PushNotificationsService.kt

Detailed docs here:
https://github.com/xmtp/xmtp-android/blob/main/library/src/main/java/org/xmtp/android/library/push/README.md

@nplasterer nplasterer added documentation Documentation and other content group chat labels May 2, 2024
@jhaaaa jhaaaa assigned humanagent and unassigned scotboyd May 13, 2024
@jhaaaa
Copy link
Collaborator

jhaaaa commented May 13, 2024

In progress here? #704

@scotboyd
Copy link
Contributor

Addressed in #747

@jhaaaa jhaaaa assigned jhaaaa and alexrisch and unassigned humanagent May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Documentation and other content group chat
Projects
None yet
Development

No branches or pull requests

5 participants