azure-notificationhub

Azure Notification Hub: notifications not showing up if sent to group

帅比萌擦擦* 提交于 2019-12-13 04:43:57
问题 I have a trouble making notification hub to work. If I send notification to tag that has only one registration associated with it, then everything's fine. Here's source: var alert = "{\"aps\":{\"alert\":\"some message(targeted)\"},\"inAppMessage\": \"text\"}"; hub.SendAppleNativeNotificationAsync(alert,"mytag").ContinueWith(t => { var outcome = t.Result; Console.WriteLine(outcome); }); But if I try to sent my notification to all users, like so: var alert = "{\"aps\":{\"alert\":\"some message

NotificationHub send notification in registered tag UWP

无人久伴 提交于 2019-12-13 02:34:14
问题 Is there a way to send a notification with UWP app through NotificationHub? In many tutorials they send notifications with a C# console application using Microsoft.Azure.NotificationHubs Nuget package. I cannot install this package in a UWP app. Can i specifically send a notification to a tagged device that i register with RegisterNativeAsync? 回答1: Per my experience, I think the simple way for sending notification in a UWP app is to using Notification Hub REST APIs via HttpClient, without the

Azure - Notification Hub namespace error

泪湿孤枕 提交于 2019-12-12 16:06:39
问题 Im trying to set up push notifications with Azure at the moment but every time i go and try to set up a notification hub, it gives me an error saying the "Namespace already exists. Please enter a different name" Does anyone know a solution to this very strange issue? Thanks 回答1: The namespace has to be globally unique, since it forms part of the dns address of the service. You will have to add some more uniqueness to it for your purpose, else it's clashing with another azure service that

Azure Notification Hub: 'Test Send' was successfully sent, but not any GCM traffic. Why?

旧时模样 提交于 2019-12-12 15:01:48
问题 In the Azure Portal, I created a Notification Hub. And in "Push notification services - Google (GCM)", I entered the API Key value that I obtained from GCM. In order to verify my settings of Azure Notification Hub and GCM, I ran 'Test Send' in Azure Portal - Notification Hub. I got a message in Portal soon as below. Successfully sent test message. Outcome: {1 passed, 0 failed}. Please see result section for details. BUT I have not gotten any message traffic in GCM. Refer to the screenshot,

How to get all installations when using Azure Notification Hubs installation model?

穿精又带淫゛_ 提交于 2019-12-12 11:40:30
问题 Using NotificationHubClient I can get all registered devices using GetAllRegistrationsAsync() . But if I do not use the registration model but the installation model instead, how can I get all installations? There are methods to retrieve a specific installation but none to get everything. 回答1: You're correct, as of July 2016 there's no way to get all installations for a hub. In the future, the product team is planning to add this feature to the installations model, but it will work in a

Azure NotificationHub - Detect failed notifications

对着背影说爱祢 提交于 2019-12-12 10:13:17
问题 I am trying to store failed notifications in a db , e.g. client does not have internet access. This will enable me to check from a backgroundService if there is a missing notification, and then create it from the backgroundService . I therefore have the following, on my Azure App Service Mobile : var notStat = await hub.SendWindowsNativeNotificationAsync(wnsToast, tag); telemetry.TrackTrace("failure : " + notStat.Failure + " | Results : " + notStat.Results + " | State : " + notStat.State + "

Is it OK to refresh Expiration Date every time to send notification ?

眉间皱痕 提交于 2019-12-12 06:58:01
问题 Since a registration's expiration time is 90 Days. So I plan to check first for every concern devices/registration before sending any notification. Because I don't want to keep anything on server. However, I'm not sure if it's good idea to do Is it slow to do for lots devices ? Also, I can not find a way to set Expiration time of any registration So I've never seen result when sending to expired device ? Can anyone suggest ? 回答1: the common recommended approach is to refresh registration on

Azure Notification Hub: How to handle registration for a million devices?

南楼画角 提交于 2019-12-12 03:53:47
问题 Requirement- The requirement is to send notifications to devices on specific times. That is, if a user has setup a schedule at 07:00 AM for breakfast, he'll get a notification for the same like 'Its time for breakfast, blah blah blah!'. However, if the user has already had his breakfast before 07:00 AM, he'll make his diary entry on what he had etc. and then the notification must not be sent to him. This is a recurring schedule and the user will only change this if he needs to, otherwise, the

Creating registration ID for Azure Notification Hub via REST api

给你一囗甜甜゛ 提交于 2019-12-12 02:43:19
问题 I'm building an app in cordova, and i want to use an Azure Notification Hub to send push notifications to the app. I've had some issues with the Notification Hub Cordova Plugin, as it fails to build for 64-bit architecture - hence it's this plugin is not an option for me. Instead i'm using the Notification Hub REST api. However i'm stuck trying to create a registration id from the device. I'm able to send an AJAX-request to my Notification Hub, but i keep getting a 401 error. Here's my js

how to bind key vault certificate to apns notification hub

谁说我不能喝 提交于 2019-12-11 19:46:32
问题 I've got arm that creates notification hub instance I imported certificate with password into key vault, and now I want to use that certificate as apns of notification hub for apple. I am trying something like this but always get bad request: "type": "Microsoft.NotificationHubs/namespaces/notificationHubs", "apiVersion": "2017-04-01", "name": "[concat(parameters('namespaces_nhn_ecosystem_name'), '/nh-ecosystem-', parameters('environmentSuffix'))]", "location": "[resourceGroup().location]",