gpt4 book ai didi

windows-phone-8 - 将 WNS 用于 Windows Phone 8

转载 作者:行者123 更新时间:2023-12-04 20:07:21 25 4
gpt4 key购买 nike

WNS 是否可用于 Windows Phone 8 设备。如果是,我在哪里可以找到一些好的文档来使用它。

我正要使用 MPNS 但 here它说微软正在从 Windows Phone 8.1 中淘汰 MPNS。但是当我查找文档时,它似乎还不能用于 Windows Phone 应用程序。

请帮忙。

最佳答案

official MPNS documentation (本月更新)仍然声明 MPNS 适用于 Windows Phone 8.1。

Push notifications for Windows Phone 8

May 10, 2014

Applies to: Windows Phone 8 and Windows Phone Silverlight 8.1 | Windows Phone OS 7.1

The Microsoft Push Notification Service in Windows Phone is an asynchronous, best-effort service that offers third-party developers a channel to send data to a Windows Phone app from a cloud service in a power-efficient manner.



然而, this MSDN page与之前的报价在同一日期更新,表示您可以为 Windows Phone 8.1 应用程序选择 MPNS 或 WNS。

Choosing MPNS or WNS for a Windows Phone Silverlight 8.1 app

May 10, 2014

When building a Windows Phone Silverlight 8.1 app, you have a choice to make about what push notification service your app will use. A push notification service is an asynchronous service that provides a channel you can use to send data from a cloud service to your app in a power-efficient manner. In Windows Phone 8, the Microsoft Push Notification Service (MPNS) was the push notification platform you could use. In Windows Phone 8.1, the Windows Notification Service (WNS) is now supported. This is the same service used by all Windows Store apps. You can use either platform in a Silverlight 8.1 app. This topic gives you the information you need to make an informed decision about which notification service platform to use in your Silverlight 8.1 app.



因此,如果您正在为 Windows Phone 8.1 创建新的 Windows Phone 应用程序,建议您使用 WNS,它具有更多功能:

The following lists some of the benefits of using WNS and the Windows Runtime APIs for tiles, toast and badges in your Silverlight 8.1 app.

  • Notifications are delivered within 5 seconds to devices connected to a network

  • No more certifications to manage. WNS uses OAuth instead of SSL certification.

  • The same service and APIs can be used for all Windows Phone Store apps, offering the potential for code sharing/reuse and lower maintenance costs.

  • Periodic polling - Update tiles and badges by periodically polling for content updates from a cloud service.

  • Tile notification queue - The ability of a tile to display a rotation of up to 5 updates.

  • Larger tile template catalog - Over 40 templates to choose a tile layout suited to your needs.

  • Raw notifications - The ability to wake up your app or start a background task by sending it a raw notification.

  • Expiration time on a tile update - By setting an expiration time, the tile will revert to its default.

  • Manage your toast notifications in action center - You can use the new APIs to send notifications directly into action center, categorize notifications and selectively remove and replace notifications in action center.

关于windows-phone-8 - 将 WNS 用于 Windows Phone 8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23891617/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com