跳到正文
cccskills
免费在 GitHub 公开

push-notification-tester

Test VoIP push notifications for Telnyx WebRTC iOS (APNs) and Android (FCM) apps. Use when debugging push notification delivery, validating certificate/credential setup, or testing that a device receives VoIP pushes correctly.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(4)

  • SKILL.md2.1 KB
  • scripts/package.json295 B
  • scripts/send-android-push.js3.2 KB
  • scripts/send-ios-push.js3.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Push Notification Tester

Send test VoIP push notifications to iOS (APNs) and Android (FCM) devices.

iOS (APNs)

node {baseDir}/scripts/send-ios-push.js \
  --token=<device_token> \
  --bundle-id=<bundle_id> \
  --cert=<path/to/cert.pem> \
  --key=<path/to/key.pem> \
  [--env=sandbox|production] \
  [--caller-name="Test Caller"] \
  [--caller-number="+1234567890"]

Required args

  • --token — 64-char hex APNs device token
  • --bundle-id — App bundle ID (e.g. com.telnyx.webrtc)
  • --cert — Path to certificate PEM file
  • --key — Path to private key PEM file

Optional args

  • --env — sandbox (default) or production
  • --caller-name — Display name (default: "Test Caller")
  • --caller-number — Phone number (default: "+1234567890")

Android (FCM)

node {baseDir}/scripts/send-android-push.js \
  --token=<fcm_token> \
  --project-id=<firebase_project_id> \
  --service-account=<path/to/service-account.json> \
  [--caller-name="Test Caller"] \
  [--caller-number="+1234567890"]

Required args

  • --token — FCM device token
  • --project-id — Firebase project ID
  • --service-account — Path to service account JSON file

Optional args

  • --caller-name — Display name (default: "Test Caller")
  • --caller-number — Phone number (default: "+1234567890")

Output

Both scripts output JSON to stdout:

{"success": true, "message": "Push notification sent successfully", "details": {...}}
{"success": false, "error": "Description of what went wrong"}

Exit code 0 on success, 1 on failure.

Dependencies

Run npm install in the scripts/ directory, or the scripts will auto-install on first run.

  • @parse/node-apn — APNs client for iOS
  • google-auth-library — Google OAuth for FCM
  • axios — HTTP client for FCM API

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

10DLC brand and campaign registration for US A2P messaging compliance. Assign phone numbers to campaigns.

中文简介正在准备中。当前显示原文说明。

team-telnyx/ai2222026年10月21日 更新

10DLC brand and campaign registration for US A2P messaging compliance. Assign phone numbers to campaigns.

中文简介正在准备中。当前显示原文说明。

team-telnyx/ai2222026年10月21日 更新

10DLC brand and campaign registration for US A2P messaging compliance. Assign phone numbers to campaigns.

中文简介正在准备中。当前显示原文说明。

team-telnyx/ai2222026年10月21日 更新

10DLC brand and campaign registration for US A2P messaging compliance. Assign phone numbers to campaigns.

中文简介正在准备中。当前显示原文说明。

team-telnyx/ai2222026年10月21日 更新

10DLC brand and campaign registration for US A2P messaging compliance. Assign phone numbers to campaigns.

中文简介正在准备中。当前显示原文说明。

team-telnyx/ai2222026年10月21日 更新

10DLC brand and campaign registration for US A2P messaging compliance. Assign phone numbers to campaigns.

中文简介正在准备中。当前显示原文说明。

team-telnyx/ai2222026年10月21日 更新

查看 team-telnyx 的全部技能

报告此技能的问题