Cordova LocalNotification ID vs. FCM PushNotification TAG

We are doing an ionic app and use the two cordova plugins LocalNotification and FCM plugin.

As we know push notifications using FCM when the app is in foreground would not show the message in system try.

We think the workaround is to add notification title and message also as data, in this way we can show a LocalNotifciation with the same look and information as with the push notification.

But the problem is, we can not overwrite for example a old PushNotification with a newer LocalNotification, because the PushNotification uniq identifier is TAG and for LocalNotification it is ID.

So not sure if there is another workaround available, if not, the question is how can we overwrite a LocalNotifciation with a PushNotification and the other way around.

thx