AFAIK there is no direct way to intercept the Notification display in your application.
But in my experience, if you need to integrate advertising-sdk , for them to display / receive notifications, they usually register <receivers> in AndroidManifest.xml or require all types of <permissions> . To do this, you need to add those actual <receivers> and <permissions> to your application, so if you do not declare them, a possible Receivers that will run Notifications will not work.
If you know that they start or run some Notifications , say when you start the application ... you can use NotificationManager.cancelAll() to cancel them.
Another thing I could do is access their source code and see if they are doing something โevilโ. If they ... try to break it or something.
source share