Cordova-plugin-fcm-notification background sqlite save data

Hello everyone

How can I save the cordova-plugin-fcm-notification to the sqlite database even if the notification does not open when the application is in the background, I am not very familiar with the java language, so if someone who understands can help, I would be very happy. Good work everybody.