azure-notificationhub

Azure Notification Hub: How to view per message telemetry?

旧时模样 提交于 2019-12-11 13:32:06
问题 On the pricing page for Azure Notification Hubs: https://azure.microsoft.com/en-us/pricing/details/notification-hubs/ It states that "Standard namespaces have access to Per Message Telemetry and Push Notification Services Feedback". I am using a Standard namespace. The app is sending template based notifications to an iOS app from my back end using the C# Notification Hub client. For example: NotificationOutcome result = await hub.SendTemplateNotificationAsync(params, tags); The result.State

Registering device on Azure Notification Hub from ASP.NET

瘦欲@ 提交于 2019-12-11 12:51:14
问题 I want to make use of Azure notification hub service. In all their examples. The clients directly register with azure to give the service their device token. I want to change this model slightly in order to gain central control and also due to compatibility with existing clients. I want all my clients to register with GCM or APNS and obtain their Token. I then want to send that token off to my own api. ASP.NET Web API. The api will then fire off a request to the Azure notification service and

How to update an installation if installation id is unknown?

南楼画角 提交于 2019-12-11 10:11:50
问题 For some reason, one cannot download all installations. So, how does one go about updating a template for all installations if one doesn't know all the installation ids? Surely someone thought of this...? 回答1: There are two options when using NotificationHubs: register a device directly with the NotificationHub, or register a device through your web backend. If you're registering directly with the NotificationHub from a device, you're going to have a bad time when you need to update a

Developing for the Notification Hub on Mac OS - NodeJS/.Net Core support seems deprecated

末鹿安然 提交于 2019-12-11 07:44:29
问题 I am doing investigations into the Notification Hub in Azure. We are using Mac OS for our development environment, so only have use of .Net Core and Node JS SDKs. This discussion and this one suggest that there is no option for developing against this without being able to use .Net Framework 4.6.1. We have managed to develop a POC using the old NodeJS tutorial (which seems incomplete, as it didn't work out of the box) however, we don't want to use that in production if it is going to be made

Debugging Task.WhenAny and Push Notifications

落爺英雄遲暮 提交于 2019-12-11 07:12:42
问题 I have the following snippet to handle Azure Notification Hub push notifications: var alert = "{\"aps\":{\"alert\":\"" + message + "\"}}"; var task = AzurePushNotifications.Instance.Hub.SendAppleNativeNotificationAsync(alert, username); if (await Task.WhenAny(task, Task.Delay(500)) == task) { success = true; } Occasionally, this will fail - I'm trying to figure out why ? What's the best way to get some diagnostic information when running things with Task.WhenAny ? I'd like to know if either

Registering Push Notifications with Tags not working

ε祈祈猫儿з 提交于 2019-12-11 06:56:13
问题 I am working on a Cordova app (using Telerik Appbuilder) and using this Azure Mobile Services plugin (https://github.com/Azure/azure-mobile-apps-cordova-client) to register for Push Notifications. I get a successful response from PNS (gcm and apns), and the call to register (registration event) with Notification hub also returns a successful response below. I also get the notifications on device (both on IOS and Android) when I send the notifications using the 'Test Send' utility from Azure

Azure Notification Hub doesn't seem to work with ios 10 and swift 3

我只是一个虾纸丫 提交于 2019-12-11 06:24:39
问题 Details: Swift version - 3.1 iOS version - 10.3 I'm using WindowsAzureMessaging.framework. I do follow this guide precisely. You can see other developers facing the same issue: Official GitHub rep SO Will it ever be fixed? 回答1: For iOS version 10 or higher you can use this fork of the official GitHub rep, you can find it here https://github.com/pencildrummer/azure-notificationhubs/tree/master/iOS/bin Because you are using swift, don't forget add Bridging-Header.h file into your project with

Microsoft Azure remote notifications in Swift 3

亡梦爱人 提交于 2019-12-11 05:38:19
问题 I am working on an iOS app in Xcode 8.2.1 using Swift 3.0. I'd like for this app to be able to receive remote push notifications using Microsoft Azure. However, I'm having trouble implementing this. Most guides I've found are for older versions of Swift and don't work anymore. The only one I was able to find for version 3.0 is this one. However, this doesn't seem to work either. I followed the guide, but got the following error: Undefined symbols for architecture armv7: "_OBJC_CLASS_$

Adding a Tag to a NotificationHub in OnRegistered method

扶醉桌前 提交于 2019-12-11 05:12:58
问题 In my application after successfully login I would like to register to the NotificationHub with a Tag, where Tag is an email address. The following scenario works fine on iOS: MessagingCenter.Subscribe<LoginViewModel, string>(this, MessagesId.RegisterForPush, (s, arg) => { NSSet tags = new NSSet(arg); // create tags if you want Hub.RegisterNativeAsync(deviceToken, tags, (errorCallback) => { if (errorCallback != null) Console.WriteLine("RegisterNativeAsync error: " + errorCallback.ToString());

Azure Notification Hubs Send Notification to Specific Device

风流意气都作罢 提交于 2019-12-11 01:45:57
问题 I'm currently replacing PostSharp with Azure Notification Hub as post sharp seems to have stopped working in Azure. I have setup my app and it registers its device tag with Azure. I have tested a push notification from the Azure portal broadcasting to all and it works. However I want to amend my Web API project so I can send notifications to a specific device. Here the code that I have got so far where device tag is the device tag of the iPhone: var alert = "{\"aps\":{\"alert\":\"Hello from