That’s completely inaccurate, the dialog only shows once the app requests the permission.
If an app prompts the user for permission to send notifications as soon as it starts up, then it's the app's fault. It's been known to be bad practice (and counter-productive) for many years.