Skip to content

Node.js CLI tool to send push notifications to Android and iOS devices

License

Notifications You must be signed in to change notification settings

kaplanmaxe/push-notification-test-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Push Notification Test Tool

Simple CLI tool to send push notifications to Android and iOS devices.

Install

npm install -g push-notification-test-tool

Setup

To set up the tool run:

pushtester setup --androidSenderAPIKey YOUR_API_KEY --bundle YOUR_BUNDLE_ID --iosCert ABSOLUTE_PATH_TO_p8 --iosTeamId YOUR_TEAM_ID --iosKeyId YOUR_KEY_ID --iosEnv PRODUCTION_OR_DEVELOPMENT

Note: this wipes and rebuilds the config file each time so make sure you include all fields.

Sending a Push Notification

pushtester send ios -t TITLE -m MESSAGE tool -d YOUR_DEVICE_TOKEN
pushtester send android -t TITLE -m MESSAGE tool -d YOUR_DEVICE_TOKEN

About

Node.js CLI tool to send push notifications to Android and iOS devices

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages