How i open whatsapp chat with number in ionic 3


#1

hi all,
I want to open whatsapp chat for the specific number in ionic 3. Please help


#2

WhatsApp API:
You can create a link anywhere on your website, email or app which will open a new WhatsApp chat to a specific number.

To create the WhatsApp chat link, you need a specific URL.

My Phone Number: 099999999999
My Country Code: +91

https://api.whatsapp.com/send?phone=919756054965

#3

thanku its working. also want to know how i attach text also


#4

To do that, add text= to the URL with a urlencoded value. Here is an example:

https://api.whatsapp.com/send?phone=919756054965&text=I%20want%20to%20find%20out%20about%20your%20products

To urlencode a string of text, go to urlencoder.org for free encoding and decoding.


#5

Thanku so much :slight_smile: