apns

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var APNS_PARAMS_COUNT = 4

Functions

func New

func New(args ...interface{}) push.IPush

创建APNs推送接口对象(create APNs push object) args[0] => strAuthKeyFile APNs auth key file AuthKey_XXXXX.p8 (string) args[1] => strKeyID APNs key id (string) args[2] => strTeamID APNs team id (string) args[3] => strTopic APNs bundle id of your app (string)

Types

type Apns

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

func (*Apns) Debug

func (a *Apns) Debug(enable bool)

enable or disable debug output

func (*Apns) PushNotification

func (a *Apns) PushNotification(msg *push.Notification) (MsgID string, err error)

push message to device

Jump to

Keyboard shortcuts

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