https://github.com/kaplanmaxe/push-notification-test-tool
Node.js CLI tool to send push notifications to Android and iOS devices
https://github.com/kaplanmaxe/push-notification-test-tool
android apns gcm ios push-notifications
Last synced: 6 months ago
JSON representation
Node.js CLI tool to send push notifications to Android and iOS devices
- Host: GitHub
- URL: https://github.com/kaplanmaxe/push-notification-test-tool
- Owner: kaplanmaxe
- License: mit
- Created: 2017-04-01T19:41:15.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-06-29T16:51:40.000Z (over 3 years ago)
- Last Synced: 2024-05-03T03:54:20.806Z (over 1 year ago)
- Topics: android, apns, gcm, ios, push-notifications
- Language: JavaScript
- Size: 27.3 KB
- Stars: 12
- Watchers: 3
- Forks: 3
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# 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
```