From a3743b6a58c97d7d0be44345ddaa232fe7b0938b Mon Sep 17 00:00:00 2001 From: jbhusson <jonah@elixxir.io> Date: Mon, 19 Apr 2021 17:36:02 -0400 Subject: [PATCH] add bindings for register/unregister --- bindings/notifications.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 bindings/notifications.go diff --git a/bindings/notifications.go b/bindings/notifications.go new file mode 100644 index 000000000..db1073292 --- /dev/null +++ b/bindings/notifications.go @@ -0,0 +1,18 @@ +/////////////////////////////////////////////////////////////////////////////// +// Copyright © 2021 xx network SEZC // +// // +// Use of this source code is governed by a license that can be found in the // +// LICENSE file // +/////////////////////////////////////////////////////////////////////////////// + +package bindings + +// Register for notifications, accepts firebase messaging token +func (c *Client) RegisterForNotifications(token []byte) error { + return c.api.RegisterForNotifications(token) +} + +// Unregister for notifications +func (c *Client) UnregisterForNotifications() error { + return c.api.UnregisterForNotifications() +} -- GitLab