Tag: azure notificationhub

如何从服务器端注册设备到Azure通知中心(使用NodeJS sdk)?

我正在开发一个Windows Phone 8.1应用程序(RT),我正尝试使用Azure通知中心推送通知。 我可以用客户端SDK提供。 但是我想从服务器端进行设备注册,标记等。 我在http://blogs.msdn.com/b/azuremobile/archive/2014/04/08/push-notifications-using-notification-hub-and-net-backend.aspx上看到了一个很好的.Net后端指南。 我在后端服务器端使用NodeJS。 任何人都可以帮助我在相同的示例代码左右。 我想从服务器端(iPhone,Android和Windows Phone)注册设备,实际上我有通过API调用从设备发送的服务端可用的设备令牌。 我想要为每个设备更新多个标签不时。 我想在用户请求时取消注册设备。 我想发送推送通知到特定的标签,使用模板。

Azure应用程序服务推送通知注册与iOS中的标签

我在本月开始使用Azure App Service,之前我使用的是Azure Mobile Services的App Service,注册设备令牌非常简单,但是在应用服务中,我意识到由于安全问题而将其删除,所以我必须使用自定义API。 我正在使用自定义身份validation(不是azure色的身份validation服务(由于我的客户端不希望它))与我的数据库,以便我需要设置用户ID作为标记发送通知给特定用户。但是,我面临的问题,即使如果设备令牌注册是好的(我可以发送推送给没有标签的每个人)标签不工作,我正在关注这些博客post https://blogs.msdn.microsoft.com/writingdata_services/2016/04/14/adding-push-notification-tags-from-a-node-js-backend/ https://blogs.msdn.microsoft.com/writingdata_services/2016/01/22/adding-push-notification-tags-from-an-azure-mobile-apps-client/ 我的自定义API(updateNotification.js) var api = { get: (request,response,next) => { var push = request.azureMobile.push; var installationId = request.query.id; push.getInstallation(installationId, function(error, installation, res){ if (error){ console.log('An error occurred when retrieving installation : ' + error); response.status(error.statusCode).send(error.detail); } else{ // Return an array of current tags. response.json(installation.tags); } }); […]