Send WhatsApp Message from .Net Maui

Hi, guys in this blog we will learn how to send WhatsApp messages from our .net Maui App.

Output

MainPage.xaml

This is the UI code for our app having 2 Entries, One for the mobile number & one for the message, and a button to send our message.

MainPage.xaml

MainPage.xaml.cs

MainPage.xaml.cs

Note: I have appended the country code just before sending a WhatsApp message. You can provide a dropdown for country codes as per your needs.

Append country code

Used the Launcher of Maui to launch WhatsApp to send messages to specific mobile numbers.

Launcher to launch Whatsapp
Video Output

Thanks for reading my blog till here. Happy Coding :D

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Dinesh Falwadiya
Dinesh Falwadiya

Written by Dinesh Falwadiya

Mobile app developer who loves to share his knowledge and get improve with others.

Responses (3)

Write a response

Very cool, thanks for the code! Do you know if this is also possible with the WhatsApp Business app?

1

hi! do you know how to set the code so the message is also sent automatically? rn the user has to press Enter.
thankyou!

1

Very nice