我已经下载了库Push Sharp,并通过源代码检查,我无法弄清楚如何开始发送notifricatinos到APN。PushSharp库并发送通知到APN
正如他们的文档中给出的,我配置了Apple的证书。但图书馆太复杂,无法确定从哪里开始。即使这个项目在我的VS2010中加载了很多错误。这与VS2010有关吗?
有人可以请我指向一个初学者级别的资源,这将有助于我开始使用Push Sharp。最近几天我脱掉了头发。希望有人能够帮助我。
我已经下载了库Push Sharp,并通过源代码检查,我无法弄清楚如何开始发送notifricatinos到APN。PushSharp库并发送通知到APN
正如他们的文档中给出的,我配置了Apple的证书。但图书馆太复杂,无法确定从哪里开始。即使这个项目在我的VS2010中加载了很多错误。这与VS2010有关吗?
有人可以请我指向一个初学者级别的资源,这将有助于我开始使用Push Sharp。最近几天我脱掉了头发。希望有人能够帮助我。
对于初学者水平,下面的链接是最好的启动:
http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12
不知道如果你还在寻找,但这个(希望)似乎是几乎正是你在找什么:Send push notifications to iPhone with PushSharp, C#, MonoTouch, client-side and server-side
代码摘录:
_pushBroker = new PushBroker();
var appleCert = File.ReadAllBytes("PushSharp.PushCert.Development.p12");
_pushBroker.RegisterAppleService(
new ApplePushChannelSettings(false, appleCert, "ThePassword"));
_pushBroker.QueueNotification(
new AppleNotification()
.ForDeviceToken(deviceToken)
.WithAlert(message)
.WithBadge(1)
.WithSound("sound.caf"));
推式#[文档】(https://github.com/Redth/PushSharp/blob/master/Documentation/)排序的[具有示例]( https://github.com/Redth/PushSharp/blob/master/Documentation/APNS-Guide-Images/apns-guide-022.png)。 – bzlm 2013-09-22 20:08:55