fcm

package
v3.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 11 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(pushConf *config.Push, cache cache.ThirdCache) (*Fcm, error)

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 *options.Opts) error

Jump to

Keyboard shortcuts

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