通过终端测试极光推送

246 阅读1分钟

命令行: 说明: appid和应用签名 b5ab0611aa9db704d607ae53:5ec8b9fe417acb03d64ad851

curl —insecure -X POST -v https://api.jpush.cn/v3/push -H "Content-Type: application/json" -u "b5ab0611aa9db704d607ae53:5ec8b9fe417acb03d64ad851" -d '{"platform":"ios","audience":"all","notification":{"alert":"Hi,JPush!"},"options":{"apns_production":false}}'
curl —insecure -X POST -v https://api.jpush.cn/v3/push -H "Content-Type: application/json" -u "b5ab0611aa9db704d607ae53:5ec8b9fe417acb03d64ad851" -d '{"platform":"ios","audience":"all","notification":{"alert":"Hi,JPush!","ios":{"sound":"sound.caf","badge":"+1"}},"options":{"apns_production":false}}'