Allow Notifications message from iOS

I have seen this before but it did not have a clear answer a few years ago has anything chnaged? I have been using AutoAccept Alerts to get myself past this code in the past but the Devs our now using alerts as Pop up messages in the app and Auto Accept Alerts will dismiss or Accept at random causing problems for my tests. Is there a way around this? When Attempting to run Inspector it does not see this window.