不好意思想请问一下关于pashsharp的相关问题
iOS手机端都无法收到Server端送出的讯息
以下是我的程式码
{
var push = new PushBroker();
var appleCert = System.IO.File.ReadAllBytes(Server.MapPath("~/bin/External/poshsharptest_production.p12"));
push.RegisterAppleService(new ApplePushChannelSettings(true, appleCert, "password"));
push.QueueNotification(
new PushSharp.Apple.AppleNotification()
.ForDeviceToken(registrationid)
.WithAlert("Hello World!")
.WithSound("default")
);
}
是iOS凭证上的问题还是说C#程式码有问题
烦请各位帮小弟解答了谢谢