How to wake up the application for push notifications? I'm using "content-available": 1 in the payload, xcode is configured (background fetch, remote notifications are checked), Notification Service Extension added.
I am using firebase (admin-sdk, NodeJS).
notification: {
title: 'some title',
body : 'somebody'
},
data: {
command:notification.command,
...data
},
apns: {
payload: {
aps: {
contentAvailable: true
mutableContent: true
sound: 'default',
}
},
headers: {
'apns-push-type': 'background',
'apns-priority': '10',
'apns-topic': 'login.topnlab.ru',
},
},
Push notifications come in foreground, quit, background state, but not in killed/terminated. The app only wakes up if the push notification is delivered immediately after killing the app and within a couple of minutes. And the application does not wake up until the user launches the application.
I understand that firebase doesn't guarantee stable delivery of remote push notifications. But now the app doesn't react at all on them. It looks like I'm doing something wrong. Give me a hint, please, where could I be wrong?