Maybe more tangential, but isn't that the app itself asking, like a gatekeeper? I think if Apple generates that message or its triggered, then it's one-shot - if the user says "No", it will never be seen again (to be clear, to me and most, this is desired behavior).
So instead you have the app asking things like this, or "can we send you notifications?", and so if you say no, it can ask later, and not trigger the OS interaction until just-in-time.
So instead you have the app asking things like this, or "can we send you notifications?", and so if you say no, it can ask later, and not trigger the OS interaction until just-in-time.