Run application service when push notification received

Hello,

Is it possible to run some application service in the background when push notification is received (no matter what is the state of the app [foreground, background, closed]).

I use Firebase push notifications.

What I think of now is to combine autostart plugin, background mode plugin and firebase messaging plugin, but it won’t cover the situation when the app is closed by the user or system worker to release resources. Autostart works only for Android too so this not the perfect solution.

Thanks for any help.

Looking for that too…
I have figure out that pushNotificationReceived event works when app is open… but when app is closed its not work… theres a bug about it…
in the past it was working for closed app too…
did you find another solution ?