Quantcast
Channel: Service Bus forum
Viewing all articles
Browse latest Browse all 1916

Not able to send notifications to Android devices

$
0
0

I have registered an Android device in my notification hub.

I can even fetch the registration details properly.

Even the tags are correct.

But when i send the notification then it is not received by the Android device(It is working fine with iPhone-different payload).

Any help is appreciated.

Here is my code to send the notification.

NotificationHubClient hubClient;
hubClient = NotificationHubClient.CreateClientFromConnectionString("Connection String", "Hub name");
string tag = "RelevantTag";
var result = await hubClient.SendGcmNativeNotificationAsync("{ \"data\" : {\"msg\":\"Hello from Azure!\"}}", tag);


Viewing all articles
Browse latest Browse all 1916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>