apn-test (v1.3.1) is a CLI tool and Node.js library to quickly send a test push notification to an iOS device via Apple Push Notification service (APNs). It simplifies testing by requiring only a device token, certificate, and key. The package supports both single and multiple device tokens, payload customization, and production/development environments. It is lightweight, with no runtime dependencies, and offers a simple API. Maintenance is low; the last release was in 2017.
npm install apn-testNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Send a test push notification to a device token using certificate and key files.
Run CLI with `apn` instead of `apn-test`.
For multiple tokens, call apnTest multiple times or use the CLI.
Use Node >=0.10.0 and <=12.x (best effort).
Provide absolute or relative path to cert.pem via --cert option.
Check cert/key files, ensure proper permissions, verify network.
Verify token correctness and use appropriate environment (development/production).
No dependency data recorded yet.