Ionic Alert: wait until button is pressed

Hi, I have a class Action with it’s method do() wherein the IonicAlert is called.
What I want to do now is, that I call something like
Action.do().then( () => { /* do domething */ } );
but only after OK was clicked on the alert.

do(): Promise<boolean> {

    let alert = this.alertCtrl.create({
      buttons: [{
        text: 'OK',
        handler: () => {
          alert.dismiss().then( () => { /* do something */ });
          return false;
        }
      }]
    });

    alert.present();
    return null;
  }
}

I added return null; only to get no error, but of course it’s not working.
Any idea, how to solve this? Thanks

This worked for me with ionic 4

export class GalleryPageModule {
  constructor (private router: Router, private platform: Platform, public alertController: AlertController) {
    this.platform.backButton.subscribeWithPriority(0, () => {
      this.presentAlert().then(()=>{
        this.router.navigateByUrl('home');
      });
    });
  }
  async presentAlert() {
    const alert = await this.alertController.create({
      header: 'Alert',
      subHeader: 'Subtitle',
      message: 'This is an alert message.',
      buttons: ['OK'],
    });
  
    await alert.present();
    let result = await alert.onDidDismiss();
    console.log(result);
  }
}

doing this the routing to the home page is performed after pressing the alert “OK” button.
hth