messaging

package
v0.0.0-...-4350bb9 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Title string
	Body  string
}

type Messaging

type Messaging struct {
	Client *messaging.Client
}

Messaging - Firestore Cloud Messaging (FCM)の構造体

func NewClient

func NewClient(ctx context.Context, app *firebase.App) (*Messaging, error)

NewClient - FCMに接続

func (*Messaging) SendMulticast

func (m *Messaging) SendMulticast(
	ctx context.Context, registrationTokens []string, d *Data,
) (*messaging.BatchResponse, error)

SendMulticast - 複数端末へのプッシュ通知

Jump to

Keyboard shortcuts

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