Documentation ¶
Overview ¶
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 fcm is push notification plugin using Google FCM. https://firebase.google.com/docs/cloud-messaging
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrepareNotifications ¶ added in v0.16.5
func PrepareNotifications(rcpt *push.Receipt, config *AndroidConfig) []messageData
PrepareNotifications creates notification payloads ready to be posted to push notification server for the provided receipt.
Types ¶
type AndroidConfig ¶ added in v0.16.5
type AndroidConfig struct { Enabled bool `json:"enabled,omitempty"` // Configs for specific push types. Msg androidPayload `json:"msg,omitempty"` Sub androidPayload `json:"msg,omitempty"` // contains filtered or unexported fields }
Configuration of AndroidNotification payload.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler represents the push handler; implements push.PushHandler interface.
Click to show internal directories.
Click to hide internal directories.