Share via

Microsoft.Maui.ApplicationModel.FeatureNotSupportedException for PhoneDialer and EmailMessage

Sreejith Sreenivasan 1,001 Reputation points
2024-05-29T09:18:27.9966667+00:00

I am getting below exception for PhoneDialer and EmailMessage features.

Microsoft.Maui.ApplicationModel.FeatureNotSupportedException: Specified method is not supported. at Microsoft.Maui.ApplicationModel.Communication.PhoneDialerImplementation.ValidateOpen(String number) in D:\a_work\1\s\src\Essentials\src\PhoneDialer\PhoneDialer.shared.cs:line 73 at Microsoft.Maui.ApplicationModel.Communication.PhoneDialerImplementation.Open(String number) in D:\a_work\1\s\src\Essentials\src\PhoneDialer\PhoneDialer.android.cs:line 25 at NeedHelp.Pages.FriendDetailsPage.PhoneNumber_Tapped(Object sender, EventArgs args)

PhoneDialer.Open(phone);

var message = new EmailMessage
{
    Subject = subject,
    Body = body,
    To = recipients
    Cc = ccRecipients,
    Bcc = bccRecipients
};
await Email.ComposeAsync(message);

Do we have any alternatives for these features in MAUI?

Developer technologies | .NET | .NET Multi-platform App UI

Answer accepted by question author

Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 36,456 Reputation points Microsoft External Staff
2024-05-30T09:53:26.8466667+00:00

Hello,

Please configure the platform-specific setup as described in Phone dialer - .NET MAUI | Microsoft Learn and Email - .NET MAUI | Microsoft Learn

Best Regards,

Wenyan Zhang


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.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.