How to wake up the app for remote push notifications in killed/terminated state?

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?

If an app is terminated then there's no way of waking it (unless voip push is used, but you can't use that if you're not a voip app)

You can have an app directed push, that will get delivered to the app, but not if its terminated. Or you can have a user directed push, that doesn't get delivered to the app but will be delivered to the user, going via a notification service extension if there is one. However the notification service extension cannot wake the app.

BTW You have both contentAvailable and mutableContent set here but its supposed to be one or the other, not both. And if you are using content-available which you say your are, then that will not get delivered to the notification service extension. Seems like you are mixing things up and don't have a clear understanding of the different types of push and what they get delivered too. Anyway, regardless, you cannot wake a terminated app with a push.

First, you must set the 'apns-priority' as '5' when you send a silent push. You can try it again. It actually can wake my app from "Killed" to "Background", but after that, you still can't find it in the "Recent apps" list. I just checked that it actually runs from the Console app log.

How to wake up the app for remote push notifications in killed/terminated state?
 
 
Q