Documentation
¶
Index ¶
Constants ¶
View Source
const (
PayloadMaximum = 4096
)
Variables ¶
This section is empty.
Functions ¶
func Push ¶
func Push(msg *PushMessage) error
func ReCreateAPNS ¶ added in v2.1.8
Types ¶
type PushMessage ¶
type PushMessage struct {
Id string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty" query:"id,omitempty"`
DeviceToken string `form:"-" json:"-" xml:"-" query:"-"`
DeviceKey string `form:"device_key,omitempty" json:"device_key,omitempty" xml:"device_key,omitempty" query:"device_key,omitempty"`
Subtitle string `form:"subtitle,omitempty" json:"subtitle,omitempty" xml:"subtitle,omitempty" query:"subtitle,omitempty"`
Title string `form:"title,omitempty" json:"title,omitempty" xml:"title,omitempty" query:"title,omitempty"`
Body string `form:"body,omitempty" json:"body,omitempty" xml:"body,omitempty" query:"body,omitempty"`
// ios notification sound(system sound please refer to http://iphonedevwiki.net/index.php/AudioServices)
Sound string `form:"sound,omitempty" json:"sound,omitempty" xml:"sound,omitempty" query:"sound,omitempty"`
ExtParams map[string]interface{} `form:"ext_params,omitempty" json:"ext_params,omitempty" xml:"ext_params,omitempty" query:"ext_params,omitempty"`
}
func (PushMessage) IsEmptyAlert ¶ added in v2.2.2
func (p PushMessage) IsEmptyAlert() bool
Check if it's an empty message, empty messages might be silent push notifications
func (PushMessage) IsEncrypted ¶ added in v2.2.2
func (p PushMessage) IsEncrypted() bool
Check if it's an encrypted push notification
Click to show internal directories.
Click to hide internal directories.