When Android App is in Foreground State, onPushNotificationReceived listener is getting invoked having the notification data. When in Background or Terminated State, Notification does get received but onPushNotificationReceived listener is not getting invoked neither automatically nor when I tap on the notification. I'm sending the push from Azure Portal.
{ "notification":{ "title":"Notification Hub Test Notification", "body":"This is a sample notification delivered by Azure Notification Hubs." }, "data":{ "property1":"value1", "property2":53 }, "priority": "high" }
I'm following Tutorial: Send push notifications to Android devices using Firebase SDK version 1.0.0-preview1 (Current SDK) tutorial. https://learn.microsoft.com/en-us/azure/notification-hubs/android-sdk
Android OS: 11
Is there something else which i need to do apart from the mentioned steps in the above link?