How to show a message (or alert/toast) right now before
UniSession.UniApplication.Restart
to indicate and inform user that app is reloading.
Need this for desktop and mobile environment as well.
Thanks.
procedure TMainForm.UniButton1Click(Sender: TObject);
begin
//ShowMessage('The App will restart now');
UniSession.AddJS('Ext.toast({html: "The App will restart now", header: false, autoCloseDelay: 5000});');
UniTimer1.Enabled := True;
end;