如何开始使用 Windows Phone 7 推送通知

发布于 2024-10-03 00:12:29 字数 259 浏览 1 评论 0原文

有人可以帮我开始 WP7 开发中的推送通知吗? 我用过这个实验室 http://msdn.microsoft.com/en-us/wp7trainingcourse_usingpushnotificationslab.aspx 了解推送通知,但仍然无法让它们在我的应用程序中工作:/

can someone help me to start with push notification in WP7 development??
I used this labs
http://msdn.microsoft.com/en-us/wp7trainingcourse_usingpushnotificationslab.aspx
to learn about push notifications but stil can't get them to work in my app:/

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

尾戒 2024-10-10 00:12:29

Jeff Blankenburg (BlankenBlog) 有一篇很好的教程文章,很好地展示了推送通知中的不同部分。第 19 天:推送通知

Jeff Blankenburg (BlankenBlog) had a nice tutorial post that does a good job of showing the different parts that go into a Push notification.Day 19: Push Notifications

迷乱花海 2024-10-10 00:12:29

目前推送通知有点棘手。您对培训课程有任何具体问题吗?请描述您无法正常工作的部分,也许我们可以提供帮助。

有关推送通知的一些一般信息:
为了让推送通知发挥作用,您需要三个关键要素:

  • 设备(手机)
  • Microsoft 推送网络
  • 后端应用程序(例如云服务)

最后一个播放器是大多数人所没有想到的。如果没有它,工作会很好,但目前它是一个必要的聚会。

我建议您阅读 Yochay 发布的有关推送通知的一系列精彩文章。您可以在这里找到三部分的第一部分:
http ://windowsteamblog.com/windows_phone/b/wpdev/archive/2010/05/03/understanding-microsoft-push-notifications-for-windows-phones.aspx

此图描述了好方法:
http://windowsteamblog.com/cfs -filesystemfile.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/wpdev/image_5F00_48BA75B1.png

HTH

Push notifications are a bit tricky at the moment. Do you have any specific problems regarding the training course? Please describe what parts you're not getting to work properly and perhaps we can help out.

Some general info on push notifications:
In order to get push notifications to work you need three key ingredients:

  • A device (a phone)
  • Microsoft Push Network
  • A backend application (e.g. cloud service)

The last player is what most people aren't expecting. It would be nice to work without it but at the moment it's a necessary party.

I suggest you to read an excellent series of posts about push notifications from Yochay. You can find the first part of three here:
http://windowsteamblog.com/windows_phone/b/wpdev/archive/2010/05/03/understanding-microsoft-push-notifications-for-windows-phones.aspx

This picture describe the flow and key players in a good way:
http://windowsteamblog.com/cfs-filesystemfile.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/wpdev/image_5F00_48BA75B1.png

HTH

清泪尽 2024-10-10 00:12:29

您可以参考此 doco 开始使用推送通知。它包括概述、用于创建通道的代码示例(您将其发送到 Web 服务)以及如何实现从服务器生成推送通知(包括响应代码)的示例。

Windows Phone 推送通知

如何:为 Windows Phone 设置通知通道

如何:从Windows Phone 的 Web 服务

请注意,据报道,用于模拟从服务器生成通知的培训工具包的工具已报告为未及时更新 Beta 期间界面中发生的更改。

因此,它无法与当前的推送通知服务一起使用。

上面的第三个链接显示了如何生成它是最新的。

You can get started with push notifications refering to this doco. It includes the overview, the code samples for creating a channel (which you send to your web service) and a sample of how to implement generating the push notification from your server including the response codes.

Push Notifications for Windows Phone

How to: Set Up a Notification Channel for Windows Phone

How to: Send a Push Notification from a Web Service for Windows Phone

Note that it's been reported that the tool with the training kit to simulate generating notices from your server has been reported to not be up to date with changes that took place in the interface during Beta.

As a result, it will not work with the current Push Notification Service.

The 3rd link above that shows how to generate this is up to date.

花想c 2024-10-10 00:12:29

好吧,这基本上是一个无耻的插件,但我创建了一个开源框架,可以帮助您开始使用 Toast 和 Live Tiles。它可以通过 nuget 包管理器获得,源代码位于 github 上。您可以在这里阅读更多相关信息:

http://coding-insomnia.com/entile

OK, so this is basically a shameless plug, but I've created an open source framework that helps in getting you started with Toast and Live Tiles. It is available via the nuget package manager and the source code is on github. You can read a bit more about it here:

http://coding-insomnia.com/entile

浊酒尽余欢 2024-10-10 00:12:29

你应该看看中士写的这篇文章。康克。
http://www.sgtconker.com/2010/ 03/article-windows-phone-7-push-notifications/ 它包含非常有用的提示和技巧。并且有非常好的描述和源代码。

您可以开始在模拟器中测试示例应用程序。

祝你好运

编辑:当我创建这个答案时,链接有效。
请参阅更新的Microsoft MSDN 链接

You should see this article that written by Sgt. Conker.
http://www.sgtconker.com/2010/03/article-windows-phone-7-push-notifications/ It contains very usefull tips and tricks. And has realy good descriptions as well as source code.

You can be able to start to test example app in simulator.

Good luck

Edit : The link was working when i created this answer.
Please have see updated Microsoft MSDN link

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文