azure-notificationhub

Can we connect azure event hub with azure notification hub?

扶醉桌前 提交于 2019-12-08 11:59:32
问题 I sent the message from windows form application to azure event hub. After I using data stream analytics for some real time operation and get data from event hub. After that operation I sent result message to event hub. Now I want to display the result message to users through azure notification hub using mobile app(android or windows mobile app). Can we connect azure notification hub and azure event hub directly?. 回答1: No it cannot be done directly, some intermediate layer should get a

Azure Notifications to WP and iOS

自作多情 提交于 2019-12-08 10:32:18
问题 My app uses an Azure Notification Hub to send messages to both Windows Phone and iOS devices. The problem is that they work if one is called, but it doesn't work if both are called. For example, If I send a message to an iOS device from my iOS emulator, the following code works fine and the notification appears. var toast = PrepareMpnsToastPayload("myapp", notificationText); var appleToast = PrepareAppleToastPayload("myapp", notificationText); //await NotificationHelper.Instance.Hub

How to configure the APNS.Certificate in the arm template

拥有回忆 提交于 2019-12-08 06:27:44
问题 I am using the following azuredeploy.json file for setting up the notification hub on the Azure cloud. { "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "Gcm.GoogleApiKey": { "type": "string", "metadata": { "description": "Google Cloud Messaging API Key" }, "defaultValue": "AIzaSyAyp9MernKgMS3wFNM3yNWByiP-TaGrqEg" }, "APNS.Certificate": { "type": "string", "metadata": { "description": "A certificate (in

Deal with duplicate entries in azure notification hub for the same device

喜夏-厌秋 提交于 2019-12-07 04:11:31
问题 I am using windows azure notification hub in my application to provide notifications to the user. Below is the code of the API that registers the devices on notification hub. var platform = registrationCall["platform"].ToString(); var installationId = registrationCall["instId"].ToString(); var channelUri = registrationCall["channelUri"] != null ? registrationCall["channelUri"].ToString() : null; var deviceToken = registrationCall["deviceToken"] != null ? registrationCall["deviceToken"]

What does the following Azure Notification Hub REST response mean: 'The specified resource description is invalid.'?

醉酒当歌 提交于 2019-12-06 16:37:40
I am trying to register my Windows Universal App for notifications from the Azure Notification Hub through our Java backend service. I debugged the app from Visual Studio, while it was running on my Windows Phone device. The app could properly get a ChannelUri and passed it along to our Java backend. (I ran the backend on my local PC.) The Java backend generated the following request for a template registration and tried to send it to the Azure REST Api: <?xml version="1.0" encoding="utf-8"?> <entry xmlns="http://www.w3.org/2005/Atom"> <content type="application/xml">

azure notification hubs - app uninstall

随声附和 提交于 2019-12-06 13:52:10
I would like to use Azure Notification Hubs to send push notifications to users of my app running across iOS, Android and Windows Phone. I have managed to get the basics working but I don't know how to manage the App uninstall story. On starting, the mobile app will call my Identity Svc to get an Auth Token. It then calls its Platform Notification service (eg Google Cloud Messaging, APNS) to get a PNS Token. After persisting the token to local storage it will call a back-end Contact Svc to register the customer's device. This service will create a subscription to the Azure Notification hub for

Is Microsoft.Azure.NotificationHubs 1.0.9 compatible with .NET Core 2.0?

不羁的心 提交于 2019-12-06 07:18:23
问题 We are using NotificationHubs version 1.0.9 with .NetCore 2.0 and .Net Framework 4.7. At compile time, we get this warning: "Package Microsoft.Azure.NOtificationHubs 1.0.9 was restored using '.NETFramework, version=4.6.1' instead of the project target framework '.NETCoreApp, version=2.0. this package may not be fully compatible with your project." Everything is still built, but at runtime when this call is invoked: RegistrationDescription hubRegistration = await hubClient

Azure NotificationHub - Detect failed notifications

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-06 05:23:25
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 + " | Success : " + notStat.Success + " | trackingID : " + notStat.TrackingId + "); The code snippet was to

Android Azure Notification hub unregister

大城市里の小女人 提交于 2019-12-06 04:36:17
问题 I'm having a problem with unregistering notification hub from Azure. I'm using method unregister() like this : gcm = GoogleCloudMessaging.getInstance(getApplicationContext()); String connectionString = "xxx"; hub = new NotificationHub("xxx", connectionString, getApplicationContext()); try { gcm.unregister(); hub.unregister(); Log.d("GCM","Unregister"); } catch (IOException e) { e.printStackTrace(); } catch (Exception e) { e.printStackTrace(); }; I don't get any exception in this code, but I'm

Deal with duplicate entries in azure notification hub for the same device

偶尔善良 提交于 2019-12-05 08:50:40
I am using windows azure notification hub in my application to provide notifications to the user. Below is the code of the API that registers the devices on notification hub. var platform = registrationCall["platform"].ToString(); var installationId = registrationCall["instId"].ToString(); var channelUri = registrationCall["channelUri"] != null ? registrationCall["channelUri"].ToString() : null; var deviceToken = registrationCall["deviceToken"] != null ? registrationCall["deviceToken"].ToString() : null; string RegistrationID = registrationCall["RegistrationID"] != null ? registrationCall[