Is there any way in which I can get the data message (not notification messages) when app is in background. I don’t mind writing native Java code and adding an aar file, but I need to get the data messages from Firebase in my Android app even when my app is in background.
For now I know firebase unity plugin actually caches the data messages when in background and gives the callback when app is launched, but it does not serve the purpose of a push notification, i.e. to bringing a user back to the app. I know this must be possible, but not how.
Or is there a way of doing this without Firebase Unity plugin, i.e. by using native firebase-messaging aar library?