when i sent Firebase Topic notification, onMessageReceived method is not fire when application is in
- Background and screen lock
- Application is close from recent application
in above two case i got notification only in system tray, i want to handle it programmatically in store in sqlite
and its work in case application in foreground and background while listed in recent applications
So how i get thats notification , i want store notification in sqlite
my postman request is below
{
"to": "/topics/181_Red_Route",
"data": {
"sound": "default",
"badge": "1",
"title": "Title1",
"body": "Desc1"
},
"notification": {
"sound": "default",
"badge": "1",
"title": "Title1",
"body": "Desc1"
},
"priority": "high",
"content_available": true
}
thanks in advance