Step 1) Create an application on your phone that supports push notifications.
Step 2) Create a webservice (inside Azure) that you send your notification token and uri to plus some type of message that contains the stuff you want to monitor. Store that subscription somewhere, azure tables comes to mind.
Step 3) have a worker role monitor the Azure database and the azure table of subscriptions to send out updates to your phone.
Monitoring for changes can be done in a number of ways, Sync framework is one of them. But it might be easier to use a a service + queue to isolate access to Sql Azure and then automatically send the push message to the phone if needed.
发布评论
评论(1)
步骤1)
在您的手机上创建一个支持推送通知的应用程序。
步骤2)
创建一个 Web 服务(在 Azure 内),将通知令牌和 uri 发送到其中,并添加某种类型的消息,其中包含要监视的内容。将订阅存储在某个地方,我想到的是天蓝色的表。
步骤3)
让辅助角色监视 Azure 数据库和 Azure 订阅表,以将更新发送到您的手机。
可以通过多种方式监视更改,同步框架就是其中之一。但使用服务+队列来隔离对Sql Azure的访问,然后在需要时自动将推送消息发送到手机可能会更容易。
Step 1)
Create an application on your phone that supports push notifications.
Step 2)
Create a webservice (inside Azure) that you send your notification token and uri to plus some type of message that contains the stuff you want to monitor. Store that subscription somewhere, azure tables comes to mind.
Step 3)
have a worker role monitor the Azure database and the azure table of subscriptions to send out updates to your phone.
Monitoring for changes can be done in a number of ways, Sync framework is one of them. But it might be easier to use a a service + queue to isolate access to Sql Azure and then automatically send the push message to the phone if needed.