Do job in background when app is killed

I read this book and I try to implement the following scenario.
When my app receives a push notification, I want to do some work in the background.
I have managed to do so when the app is in foreground or in background but I cannot achieve that when my app is killed. I get the push, it is displaying to my device but no callback is called to do the background job.

Any suggestions will be helpful.
Thank you in advance

@tkallioras Did you remember to set the content-available key to 1 in your payload?