Then how does whatsapp do this?
I tried this:
Send message to phone with killed app
Disabled network
Launched app (not through notification)
result:
Opened app contained new message. So the app must have processed at least save some data from notification. Which means some background activity needed to occur even after app has been force closed.