c# - 无法在 Windows 10 通用应用程序中接收推送通知

标签 c# windows-store-apps visual-studio-2015 win-universal-app windows-10

我正在尝试将 Windows 8.1 商店应用程序项目迁移到 Windows 10 通用应用程序项目。 但是win8.1应用正常,win10应用收不到任何推送通知。 两个项目之间的唯一区别是 package.appxmanifest。

是否需要在win10项目上添加任何设置或代码来接收推送通知? win10通用应用目前可以使用windows推送通知服务吗?

最佳答案

我不确定,但他们可能已经更改了 Windows 10 推送通知的 xml 格式。据我所知,iOS 和 Android 推送模板只接受 json,而 Windows 是 XML。

关于c# - 无法在 Windows 10 通用应用程序中接收推送通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30586208/

相关文章:

c# - 具有多个键的 OData

已声明变量的 C# 开关案例行为

c# - Xamarin.Forms PCL javax.net.ssl.SSLHandshakeException

windows-8 - AllowAllTrustedApps 注册表项在 Windows RT 中不可用

html - Windows 10 通用应用程序的 AppBar 中的 FontAwesome 图标

c# - 如何使用反射获取在基类中声明的方法?

visual-studio-2015 - 如何在Visual Basic 2015中捕获异常而不是VB.NET

c# - 使 IIS 7.5 将 *.xml 请求传递给 asp.net

c# - 这个简单的用户控制代码会导致 VS2015 崩溃。不知道为什么

c# - 在 CommandBar 的 SecondaryCommand 上设置图标