2016-11-09 58 views
0

我試圖使用此框架將推送通知從我的MacBook發送到iOS設備。在iOS上使用休斯敦發送推送通知

https://github.com/nomad/houston

我已經驗證了我的.pem證書正在使用此網絡應用:

http://www.pushwatch.com/apns/

enter image description here

所以通過web應用程序推送達到我的手機。證明我的證書沒問題。

當我嘗試休斯頓框架時,我什麼也收不到。但是,它會告訴我的推送通知被成功地發出了:

Rutgers-MacBook-Pro:Desktop rutger$ apn push "c2d080f7be677353ae654d07ab1ecc54fb894e2757eb2595661216a46d9d6c4f" -c /Users/rutger/Desktop/Runk-Push-Prod/RunkProdPush.pem -m "Hello from the command line! " 
1 push notification sent successfully 

我也試着這樣說:

Rutgers-MacBook-Pro:Desktop rutger$ apn push "c2d080f7 be677353 ae654d07 ab1ecc54 fb894e27 57eb2595 661216a4 6d9d6c4f" -c /Users/rutger/Desktop/Runk-Push-Prod/RunkProdPush.pem -m "Hello from the command line! " 
1 push notification sent successfully 

回答

0

找到了!

我失蹤:

-e production 

所以我的命令應該已經:

apn push "c2d080f7be677353ae654d07ab1ecc54fb894e2757eb2595661216a46d9d6c4f" -e production -c /var/www/html/backend/certs/runkprodpush.pem -m "Hello from the command line! "