到iOS的PushSharp通知未到达设备

我正在尝试使用PushSharp库在我运行的ac#服务中进行苹果推送通知。

代码全部似乎正确执行,没有错误,似乎所有事情都正确完成。 但是通知从未到达我的申请。

我读过的所有东西似乎都认为问题是我的证书,但是我重新下载了,并且多次重做这些步骤,一切似乎都是正确的。

这是我的PushSharp c#代码

string pushCertPath = string.Format(string.Format("{0}\\PushCert (DEV).p12", dataPath)); var appleCert = File.ReadAllBytes(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, pushCertPath)); PushBroker push = new PushBroker(); push.RegisterAppleService(new ApplePushChannelSettings(false, appleCert,"pushcert")); push.QueueNotification(new AppleNotification() .ForDeviceToken("594c78b070698ded0a5f3dc1503a42e3983b7c1d254b61a98cc6e5eb0e8b7edd") .WithAlert("You have received new messages") .WithSound("default") .WithBadge(1)); 

从昨天起我也遇到了同样的问题。 我刚刚尝试将SslProtocols从SslProtocols.Ssl3更改为SslProtocols.Default使其再次工作。 所以Apple必须改变一些东西并拒绝Ssl3协议。

  stream.AuthenticateAsClient(settings.FeedbackHost, certificates, System.Security.Authentication.SslProtocols.**Default**, false); 
Interesting Posts