最近系統忽然不能正常推送了,調試了幾天,N次從新生成推送證書,獲得提示程序員
You have selected the Production server, yet your Certificate does not appear to be the Production certificate! Please check to ensure you have the correct certificate!app
打開pushsharp源碼找到這句提示,而後在網上搜了一下,說是函數
找到函數CheckProductionCertificateMatching作以下改動spa
From調試
if (production && !subjectName.Contains("Apple Production IOS Push Services"))
Tocode
if (production && !subjectName.Contains("Apple Push Services"))蘋果公司常常作改動的,作改動也能夠理解,至少你作點兼容性也好啊。相信iOS程序員都被折騰了,但願此文對你們有幫助