Ionic 3: Back Button Hardware Event Handler Can’t Determine Overlay Views

I have an ionic 3 application and I modified the functionality of the hardware back button. It works on pages but it cannot determine whether overlay views like modals and alert dialog boxes are present or not. Here is my code this.platform.registerBackButtonAction(() => { let nav = app._appRoot._getActivePortal() || app.getActiveNav(); let activeView = nav.getActive().instance; if…

Details

Async methods called from UnhandledException handler don’t get awaited

In my App.xaml.cs, I have created a handler for responding to the AppDomain.CurrentDomain.UnhandledException event. Inside the handler, I need to call an asynchronous method which sends an email report about the error. So I’m awaiting the method, and inside it I’m awaiting Net.Mail.SmtpClient.SendMailAsync(). But this doesn’t work — when the control reaches the second await…

Details