I am working on multiple apps having Firebase notification library. I will be using third party portal to send notification. Suppose I want to send one promotional notification to all my apps and one device is having my 3 apps install. Now all 3 apps will show the same notification. How can I avoid this scenario.
Also, I have created one library to generate notification according to json received. When I get notification, I am sending data to this library. This library is added in all my apps.
Can any of following help
1: Handling from backend- Creating one firebase project and adding multiple apps.
2: Reading notification id in library which will generate notification and checking if any notification is already generated for the id.
As there is no way of finding out if one or multiple apps are install on one device, I have to send notifications to all apps.