We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da435d7 commit cfacdb7Copy full SHA for cfacdb7
library/src/main/java/org/xmtp/android/library/push/XMTPPush.kt
@@ -51,6 +51,17 @@ class XMTPPush() {
51
client.subscribe(request)
52
}
53
54
+ fun subscribeWithMetadata(subscriptions: List<Service.Subscription>) {
55
+ if (pushServer == "") {
56
+ throw XMTPException("No push server")
57
+ }
58
+ val request = Service.SubscribeWithMetadataRequest.newBuilder().also { request ->
59
+ request.installationId = installationId
60
+ request.addAllSubscriptions(subscriptions)
61
+ }.build()
62
+ client.subscribeWithMetadata(request)
63
64
+
65
fun unsubscribe(topics: List<String>) {
66
if (pushServer == "") {
67
throw XMTPException("No push server")
0 commit comments