Hello,
It is no possible to set any UI element on Phone Dialer to close it, due to it is the highest priority system application.
You could use the following code to confirm to the user that you want to open the dialer.
private async void OnCounterClicked(object sender, EventArgs e)
{
string phoneStr = "000-000-0000";
bool answer = await DisplayAlert("Question?", $"Would you like to open phone Dialer with {phoneStr}?", "Yes", "No");
if (answer)
{
if (PhoneDialer.Default.IsSupported)
PhoneDialer.Default.Open(phoneStr);
}
}
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.