Sending notification using notificationhub in Azure function
<p>I'm using azure function(set to trigger on manual input) to send notification messages to mobile devices. My code is complied without any problem and it runs just fine. However, I'm not getting any messages from my device. I checked values of "Notification Hubs namespace connection", "Notification Hub name" and "Tag expression" and they all have correct values. Am I missing something here?</p>

<p>This is my code :</p>

<pre><code>using System;
using Microsoft.Azure.NotificationHubs;

public static void Run(string input, out string notification, TraceWriter log)
{
    log.Info($"C# manually triggered function called with input: {input}");
    notification = "{\"message\":\"Hello from C#. Processed a queue item!\"}";
}
</code></pre>

<p>EDIT : I get all the messages send by using "Test Send" feature of notification hub. I also get all the message send to my webapp interacting with notification hub. I just want to get rid of that webapp and replace it with Azure function.</p>

<p>EDIT : My code is based on this tutorial -</p>

<p><a href="https://azure.microsoft.com/en-us/documentation/articles/functions-bindings-notification-hubs/" rel="nofollow">Accessing notification hub from Azure function</a></p>