I am using a DisplayAlert
like below in my project.
var answer = await DisplayAlert("Alert", "You are invited to join a group, would you like to accept it or not?", "Accept", "Reject");
if (answer)
{
//accept invitation
}
else
{
//reject invitation
}
Accept and Reject options are working fine. My problem is Reject option is executing when tapping on the background or device back arrow. Is it has a simple solution other than implementing Rg.Plugins.Popup
?
I had a similar request once, and I quickly "solved it" with a workaround like this (using DisplayActionSheet):
This is not suggested, unless you are in a hurry.
So, I would suggest you creating a custom
popupView
, something like thisthen in .cs
when you want this to appear.