diff --git a/bindings/notifications.go b/bindings/notifications.go new file mode 100644 index 0000000000000000000000000000000000000000..db1073292a9d8869aea16029e1aadbf4ab2ad65d --- /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() +}