[程式] pushsharp ios无法传送讯息

楼主: coolqwe789 (嘎嘎)   2015-07-09 20:51:47
不好意思想请问一下关于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#程式码有问题
烦请各位帮小弟解答了谢谢
作者: sos0214 (kaleidoscope)   2015-07-10 16:57:00
自行用openssl看一下p12有没有过期
作者: ssccg (23)   2015-07-10 16:58:00
有问题的话server就会直接回你error看一下pushsharp有没有取error message的API
楼主: coolqwe789 (嘎嘎)   2015-07-14 01:06:00
感谢以解决凭证的部份有测试跟产品这部份没看清楚

Links booklink

Contact Us: admin [ a t ] ucptt.com