I am using azure push notification with xamarin forms. messges are sending successfully, but when app is running its not visible in device.
this is my android code
public override void OnMessageReceived(RemoteMessage message)
{
var notification = message.GetNotification();
var data = message.Data;
string body = "";
string title = "";
if (data != null && data.ContainsKey("body") && data.ContainsKey("title"))
{
body = data["body"];
title = data["title"];
}
else if (notification != null)
{
body = message.GetNotification().Body;
title = message.GetNotification().Title;
}