最近系统忽然不能正常推送了,调试了几天,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程序员都被折腾了,但愿此文对你们有帮助