You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
OnPushNotificationReceived not hit at all when push notification arrives. Only OnMessageReceived in the FirebaseMessagingService when app is in foreground. OnMessageReceived also not hit when app is in background.
Code Snippet
NotificationHub.Start(this.Application, AzureNotificationHubConstants.NotificationHubName,
AzureNotificationHubConstants.ListenConnectionString);
NotificationHub.SetListener(new AzureListener());
public class AzureListener : Java.Lang.Object, INotificationListener
{
public void OnPushNotificationReceived(Context context, INotificationMessage message)
{
Console.WriteLine($"Message received with title {message.Title} and body {message.Body}");
}
}
Expected behavior
OnPushNotificationReceived should hit when push notification is delivered
Setup (please complete the following information):
OS: Android 11
IDE : Visual Studio 2019
Version of the Library used: Xamarin.Firebase.Messaging 121.0.1, Xamarin.Azure.NotificationHubs.Android 1.1.4.1, Xamarin.GooglePlayServices.Base 117.6.0, Xamarin.Android.Support.Design 28.0.0.3
The text was updated successfully, but these errors were encountered:
Edwin-Chadio
changed the title
[BUG]
[BUG] OnPushNotificationReceived not hit at all
Apr 11, 2021
Actually it will hit when the user click on the notification only.
But I am ok with you when we click on the notification and the app is totaly close/kill.
The App start and should raise a NotificationReceived event like in iOS.
But it does not work like iOS and the NotificationReceived event is not raised on click
Describe the bug
OnPushNotificationReceived not hit at all when push notification arrives. Only OnMessageReceived in the FirebaseMessagingService when app is in foreground. OnMessageReceived also not hit when app is in background.
Code Snippet
Expected behavior
OnPushNotificationReceived should hit when push notification is delivered
Setup (please complete the following information):
The text was updated successfully, but these errors were encountered: