Native message box do not display on iOS AUv3

The native message box on iOS do not work in the AUv3 plugin, because it hits a jassertfalse in iOSMessageBox constructor. This is because iOSGlobals::currentlyFocusedPeer is nullptr when the app is running as AUv3.

So, I guess the JuceAUViewController class should set this iOSGlobals::currentlyFocusedPeer to a non-nullptr value.

For example, if I set iOSGlobals::currentlyFocusedPeer = dynamic_cast<UIViewComponentPeer*>(editor->getPeer()) in the JuceAUViewController::loadView method, then the native message box is correctly displayed.

related issue:

1 Like