I am developing an Android plugin for Unity and trying to receive a data payload from firebase. Everything works when the app is in the foreground, but nothing is called when the app closes.
On this discussion it seems we can correct that by subclassing
com.google.firebase.messaging.cpp.ListenerService
but it seems to be for a C++ implementation, and my plugin is in pure Java.
So is there any way I can receive payloads when the app is closed ?