If I call NativeMessageBox::showOkCancelBox in an AUv3 on iOS I get the following assertion →
// Since iOS8, alert windows need to be associated with a window, so you need to
// have at least one window on screen when you use this
I can fix it by adding the following line to the constructor of UIViewComponentPeer::UIViewComponentPeer:
iOSGlobals::currentlyFocusedPeer = this;
currentlyFocusedPeer is null when the plugin is instantiated until I edit a label or do something to change the focus, which is why I am getting the assertion.
Not sure if this is a bug that should be reported?