WP Universal 应用中与 Windows 推送通知服务相关的几个疑点 [英] Few doubts related Windows push Notification service in WP Universal application
问题描述
我是一名 Windows Phone 应用程序开发人员.在我的应用程序中,我使用 WNS 实现了推送通知服务.我对此几乎没有疑问/问题.请说明
I am a Windows Phone application developer. In my application I implemented push notification services using WNS . I have few doubts/questions regarding this. Please clarify
我们如何禁用特定应用程序的推送通知?我们可以从应用程序方面阻止它吗?还是从服务器端处理?
How can we disable push notification for a specific application ? Can we prevent it from application side ? Or handle it from server side?
如果我卸载了我的应用程序并且服务器仍在向您发送推送通知.它会通过电话接收吗?
If I un install my application and the server is still sending you the push notifications. Will it receive in to phone?
在注册推送通知频道之前是否需要征得用户许可?
Is that necessary to ask user permission before registering push notification channel ?
我们能否获取在我的手机上收到但未参加的通知的通知历史记录?有没有相关的api?
Can we get notifications history of notifications received on my phone and not attended? Is there any api for that ?
谢谢
推荐答案
有关 WNS 的一般信息,请参阅:https://msdn.microsoft.com/en-us/library/windows/apps/hh913756.aspx
For general WNS information see: https://msdn.microsoft.com/en-us/library/windows/apps/hh913756.aspx
对于您的问题:
1.我们如何禁用特定应用程序的推送通知?我们可以从应用程序方面阻止它吗?还是从服务器端处理?
1.How can we disable push notification for a specific application ? Can we prevent it from application side ? Or handle it from server side?
您可以从应用程序取消注册您的 channelUri:https://msdn.microsoft.com/en-us/library/microsoft.windowsazure.messaging.notificationhub.unregisterallasync(v=azure.10).aspx
From the application you can unregister your channelUri: https://msdn.microsoft.com/en-us/library/microsoft.windowsazure.messaging.notificationhub.unregisterallasync(v=azure.10).aspx
2.如果我卸载了我的应用程序并且服务器仍在向您发送推送通知.它会通过电话接收吗?
2.If I un install my application and the server is still sending you the push notifications. Will it receive in to phone?
不是它不应该再收到任何推送通知
Not it should not receive any more push notifications
3.注册推送渠道前是否需要征得用户同意?
3.Is that necessary to ask user permission before registering push notification channel ?
是的
4.我们可以获取在我的手机上收到但未参加的通知的通知历史记录吗?有没有相关的api?
4.Can we get notifications history of notifications received on my phone and not attended? Is there any api for that ?
您可以使用 Windows.UI.NOtifications 命名空间中的类来管理客户端上的应用程序通知:
You can use the classes in Windows.UI.NOtifications namespace to manage your applciations notifications on the client:
https://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.notifications.aspx
特别是 Toast 通知历史记录:
Specifically Toast Notification History:
这篇关于WP Universal 应用中与 Windows 推送通知服务相关的几个疑点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!