Home > Software engineering >  WhatsApp HTML link
WhatsApp HTML link

Time:12-29

iam tried to connect whatsapp from html webpage using UAE PHONE NUMBER. the Html link was worked and redirected to WhatsApp. But Showing Error message is..

"the phone number shared via url is invalid"

phone number is :- 509626914

code

<a href="https://api.whatsapp.com/send?phone=971509626914&text=Can I know more about your service.." target='_blank' >
   <i ></i>
</a>

CodePudding user response:

I have tested with my phone numer and is working, you can try to use the minimal address:

Don't forget all rules about the phone number:

{country_code} {state_code} {number}

In Brazil, 55 48 9 1234 5678 must be 5548912345678

https://wa.me/{phone_number}?text={message}

CodePudding user response:

Solution 1

<a href="whatsapp://send?abid=phonenumber&text=Hello, World!">Send Message</a>

Solution 2

<a href="intent://send/phonenumber#Intent;scheme=smsto;package=com.whatsapp;action=android.intent.action.SENDTO;end">Send Message</a>

Solution 3

<a href="https://api.whatsapp.com/send?phone=15551234567">Send Message</a>
  • Related