core

package
v0.0.0-...-1ffe255 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2013 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDevice

func RegisterDevice(token string)

func SendNotificationToAllRegisteredDevices

func SendNotificationToAllRegisteredDevices(message string, badge int, sound string)

func SendNotificationToSingleDevice

func SendNotificationToSingleDevice(message string, badge int, sound string, token string) ([]byte, error)

func UnregisterDevice

func UnregisterDevice(token string)

Types

type ApnResult

type ApnResult struct {
	Alert   interface{} `json:"alert,omitempty"`
	Success bool        `json:"success,omitempty"`
	Error   error       `json:"error,omitempty"`
}

type User

type User struct {
	Name        string
	DeviceToken string
}

Jump to

Keyboard shortcuts

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