Azure推送通知以更新应用程序状态 [英] Azure push notifications to upadte app state

查看:121
本文介绍了Azure推送通知以更新应用程序状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Azure的新手,如果我的问题听起来不清楚,请原谅我,但我会尽力解释.

I am new to Azure so forgive me if my question sounds unclear but I will try to explain the best I can.

我认为当今,需要某种类型的推送通知而不是在一定的时间间隔内提取数据是很常见的.

I think it is common nowadays to need some kind of push notifications rather than pulling data in a timed interval. 

因此,如果我有一个移动应用程序,一个Web应用程序和一个桌面应用程序都在与Azure进行通信,则如果其中一个应用程序更新了Azure SQL数据库中的某些内容,我希望避免不得不在我的其他应用程序,但是会自动推送这些更改 给他们.

So, if I have a mobile app, a web app, and a desktop app all talking to Azure, if one of these apps updates something in Azure SQL database, I would like to avoid to have to pull for this change in my other apps but instead get pushed these changes automatically to them.

我认为Azure中应该有某种机制将这些更改通知应用程序(无论是Web,移动设备还是桌面设备).

I think there should be some kind of mechanism in Azure notifying the applications (whether web, mobile, desktop) about these changes. 

有这样的东西吗?我应该看什么?

Is there something like that?  What should I look into?

-d.

推荐答案

Azure通知中心发送推送,因此您将为您的移动应用程序配置通知中心.有关更多详细信息,您可以 请参阅此文档: https://docs.microsoft.com/zh-CN/azure/app-service-mobile/app-service-mobile-windows-store-dotnet-get-started-push .

You can add push notifications to Azure Mobile App, so that a push notification is sent to the device every time a record is inserted. The Mobile Apps feature of Azure App Service uses Azure Notification Hubs to send pushes, so you will be configuring a notification hub for your mobile app. For more details, you may refer to this document: https://docs.microsoft.com/en-us/azure/app-service-mobile/app-service-mobile-windows-store-dotnet-get-started-push.

您可以使用Azure通知中心将推送通知发送给特定的特定应用程序用户设备. ASP.NET WebAPI后端用于对客户端进行身份验证.当...的时候 后端对客户端应用程序用户进行身份验证,它会自动将标签添加到通知注册中.有关更多信息,您可以参考此文档: https://docs.microsoft.com/zh-CN/azure/notification-hubs/notification-hubs-aspnet-backend-windows-dotnet-wns-notification .

You can use Azure Notification Hubs to send push notifications to a specific app user on a specific device. An ASP.NET WebAPI backend is used to authenticate clients. When the backend authenticates a client application user, it automatically adds a tag to the notification registration. For more information, you may refer to this document: https://docs.microsoft.com/en-us/azure/notification-hubs/notification-hubs-aspnet-backend-windows-dotnet-wns-notification.

参考: 如何将推送通知添加到现有的Azure App Service网站.

Reference: How to add Push Notification to existing Azure App Service Website.


这篇关于Azure推送通知以更新应用程序状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆