Dialog.alert() doesn't show a dialog in Android Studio's emulator, but does in the browser

Hi,

Dialog.alert() doesn’t show a dialog in Android Studio’s emulator, but does in the browser.

Here’s the core code I’m using:

import { Capacitor } from ‘@capacitor/core’;
import { Dialog } from ‘@capacitor/dialog’;

Dialog.alert({
message: ‘msg’,
});

Here’s a GitHub repo with a full code snapshot:

Can anyone point me to what’s going wrong?

Thanks!