Is your feature request related to a problem? Please describe:
Firebase already provides a service, that is extended by this plugin, for receiving data notifcations in the background. As services have a different lifecycle than activities, we can even receive data notifications, when the app is closed (not only in the background).
Currently the notification is stored as a static property of the plugin (https://github.com/capawesome-team/capacitor-firebase/blob/main/packages/messaging/android/src/main/java/io/capawesome/capacitorjs/plugins/firebase/messaging/FirebaseMessagingPlugin.java#L75)
Describe the solution you'd like:
I would like to be able to execute custom code in this case (in our case, we want to display a local notification). There are 2 possibilities to tackle this:
Solution A:
Solution B:
Describe alternatives you've considered:
No alternatives as we can only execute code in the service, which is currently not possible without modifying the code of this plugin.
Additional context:
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too