2017-04-21 22 views
0

我最近將iOS APNS更改爲使用http2與JWT而不是 證書。最初它工作,一切都很好。在某些時候我 打破了它,因爲我沒有收到開發APN的,但生產 正在工作。在撤銷APN dev/prod證書並製作新的 和取得新的APN令牌以進行推送(在嘗試修復我的第一個問題的過程中)後,我的警報現在都被破壞(dev &製作),即使HTTP反饋代碼是200.iOS APNS未在設備上爲設備啓動,甚至沒有設置http2返回代碼200

然後我試圖解決這兩個問題,沒有運氣。我確定我有 工作的代碼仍在工作,但它似乎像蘋果有一些問題 ,他們根本沒有顯示在我的設備上。

Things Ive done/checked: 
1. Re-created both dev and production push certificates 
2. both dev and prod mobile provision profiles have been re-done/downloaded and installed. 
3. Apple ID's show both Dev and Prod push is 'enabled' 
4. in Xcode->Capabilities Push Notifications are turned on 
5. deleted the app and re-installed for both dev and prod devices 
6. made sure the APN device token (in My Application) is being updated to the server 
7. Made sure Im sending to the right Dev/Prod push servers 

除非有做的事情,我沒有得到正確之間 開發人員門戶網站,並在Xcode中安裝的一些命令,林不確定該何去何從 。任何幫助表示讚賞! 在此先感謝!

[已解決] 我發現APN負載字符串有問題。如果蘋果可以給出一些反饋代碼,那麼 會很有幫助,但是 返回代碼200的事實可能足以說明有效負載字符串有問題。

回答

0

嘗試使用命令行發送測試推送通知。如果這樣做,那麼你的服務器設置有一些問題。如果沒有,那麼問題是你的SSL證書