fcm

package
v3.6.1-beta.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const SinglePushCountLimit = 400

Variables

Functions

This section is empty.

Types

type Fcm

type Fcm struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(globalConfig *config.GlobalConfig, cache cache.MsgModel) *Fcm

NewClient initializes a new FCM client using the Firebase Admin SDK. It requires the FCM service account credentials file located within the project's configuration directory.

func (*Fcm) Push

func (f *Fcm) Push(ctx context.Context, userIDs []string, title, content string, opts *offlinepush.Opts) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL