chat: Index | Files

package fcm

import ""

Package fcm implements push notification plugin for Google FCM backend. Push notifications for Android, iOS and web clients are sent through Google's Firebase Cloud Messaging service.


Package Files


type Handler Uses

type Handler struct {
    // contains filtered or unexported fields

Handler represents the push handler; implements push.PushHandler interface.

func (Handler) Init Uses

func (Handler) Init(jsonconf string) error

Init initializes the push handler

func (Handler) IsReady Uses

func (Handler) IsReady() bool

IsReady checks if the push handler has been initialized.

func (Handler) Push Uses

func (Handler) Push() chan<- *push.Receipt

Push returns a channel that the server will use to send messages to. If the adapter blocks, the message will be dropped.

func (Handler) Stop Uses

func (Handler) Stop()

Stop shuts down the handler

Package fcm imports 14 packages (graph) and is imported by 2 packages. Updated 2019-09-25. Refresh now. Tools for package owners.