I am working on a login module where I have to show alert dialog if the login is unsuccessful. I have a authentication process in viewmodel and I have to display an error in alert dialog.How it can be done?
I am working on a login module where I have to show alert dialog if the login is unsuccessful. I have a authentication process in viewmodel and I have to display an error in alert dialog.How it can be done?
You can use this answer to show alert dialog. All you need to change is, showing your error message in the setMessage method.