Azure notification hub 1.1.1 killed app problem

Bouraoui Mansouri 1 Reputation point
2020-09-27T01:28:21.857+00:00

I am using the last ANH sdk the 1.1.1 i am getting the push when the app is in foreground or background but the only problem is when the app is killed the notification are not showing . FYI i use a NotificationListener to detect the push and the NotificationHub.start with my information .
I think that there is no receiver to get the push .
Is the last ANH sdk supposed that the reveiver included and we just need to start the hub?
If no , how to add the reveiver for a better result ?

Azure Notification Hubs
Azure Notification Hubs
An Azure service that is used to send push notifications to all major platforms from the cloud or on-premises environments.
245 questions
{count} votes

1 answer

Sort by: Most helpful
  1. sadomovalex 3,621 Reputation points
    2020-10-07T15:03:17.737+00:00

    which payload do you use for testing? Try to send push notification with the following payload from Test push notification on your notification hub with the killed app on the phone:
    {
    "notification": {
    "title":"test",
    "body":"test",
    "priority":"10",
    "sound":"default",
    "time_to_live":"600"
    },
    "data": {
    "title":"test",
    "body":"test",
    "url":"https://example.com"
    }
    }

    0 comments No comments