apnsend

command
v0.0.0-...-1abf39e Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2013 License: BSD-3-Clause Imports: 9 Imported by: 0

README

apnsend

A command line tool for sending push notifications using Apple's Push Notification System (APNs).

Example Usage

Send a push notification with an alert message using the production gateway

$ apnsend -pem cert.pem -alert "Hello World" -device-token "beefca5e"

Send a push notification with an alert message using the sandbox gateway

$ apnsend -sandbox -pem cert.pem -alert "Hello World" -device-token "beefca5e"

Send a push notification to trigger a background download of content

$ apnsend -pem cert.pem -content-available 1 -device-token "beefca5e"

Send a push notification to update the app icon badge

$ apnsend -pem cert.pem -badge 6 -device-token "beefca5e"

Send a push notification with a custom payload. The -payload argument will cause other payload-related arguments to be ignored (such as -alert, -badge etc...).

$ apnsend -pem cert.pem -device-token "beedca5e" -payload '{"foo":"bar"}'

Documentation

Overview

Utility for sending push notifications using the Apple's Push Notification System (APNs) Go library.

Jump to

Keyboard shortcuts

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