If you are an application developer, you must manage this on the server side with a web service (REST API) that allows the user to unsubscribe from notifications. Then follow the "Settings" section in your application, where the user can uncheck the notification window and call this service. Then your server will not send a notification to this user.
source share