Answer the question
In order to leave comments, you need to log in
How to handle data payload from push notification when app is not active?
Some say it's possible, others don't. The documentation says:
Your app can still receive data messages when it is in the background...
{
"to": "...",
"priority": "high",
"notification": {
"title": "Заголовок",
"body": "Текст сообщения",
"sound": "default"
},
"data": {
"title": "Заголовок",
"message": "Текст сообщения",
"payload": {
"key_one": "val_one",
"key_two": "val_two"
},
"content_available": true,
"timestamp": "2017-04-17 16:51:58"
}
}
Answer the question
In order to leave comments, you need to log in
You need to remove the notification block and make the notification yourself. Then the application will always be called
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question