pushmessage

package
v0.0.0-...-d22e7c3 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AndroidConfig

type AndroidConfig struct {
	Icon string
	// in hex format
	Color         string
	Sound         string
	Tag           string
	ClickAction   string
	BodyLockKey   string
	BodyLockArgs  string
	TitleLockKey  string
	TItleLockArgs string
}

AndroidConfig push message specific TODO: add more things that is available in the SDK

type IOSConfig

type IOSConfig struct {
	MutableContent   bool
	ContentAvailable bool
	Category         string
	ThreadID         string
	Badge            *int
	CustomData       map[string]interface{}
}

IOSConfig push message specific TODO: add more things that is available in the SDK

type Message

type Message struct {
	Token   string
	Title   string
	Body    string
	Data    map[string]string
	Android *AndroidConfig
	IOS     *IOSConfig
}

Message for push message

Jump to

Keyboard shortcuts

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