AFAIK, an app can’t influence notifications from other apps. At least on iOS. Less sure about Android. This is something that has to come from
the OS level.
on Android you can set an app as an accessibility service to read notifications and as an assistant to make actions.