Why? Unless you check "don't ask again" it will always ask...
It’s fine to have a settings page that lets you manage pop ups, but a pop up should always be extremely limited in scope.
At the extreme, ‘connect to this wifi network’ and ‘reset to factory settings’ are obviously at different scales of importance and should have significantly different UI. Similarly open this app, and changing a setting are on different scales. Basically, it’s fine if the pop up takes you to some other UI element to make the change, but pop ups should have consistent importance.