Is it possible to open Whatsapp with a especific number, I don't want to send or share anything. I just want to click on a button on my app and open Whatsapp ready to send a message or click on call I am achieving this in B4A with Dim i As Intent...
As what I have guessed. The code you posted above is for B4i.
In B4A, you can use Intent.
B4X:
Sub SendToWhatsapp(TextToSend As String)
Dim Intent1 As Intent
Intent1.Initialize(Intent1.ACTION_SEND ,"")
Intent1.SetType("text/plain")
Intent1.SetComponent("com.whatsapp/.ContactPicker")
Intent1.PutExtra("android.intent.extra.TEXT", TextToSend )
StartActivity(Intent1)
End Sub
WhatsApp a few years ago had published APIs that allowed to send messages to a specific number. For some time, those methods no longer work and new methods appear on the official website. (see: https://faq.whatsapp.com/en/android/28000012) You can now open a conversation with a phone number but...
what will happen if one user is on ios and send the url to user that is on android?
is it possible to create a universal url that will work on both platform?
EDIT: so i will explain what i mean.
the link should be shared using whatsapp and clicking on it should open the app and read the string that is shared with the url (like a id).
what will happen if one user is on ios and send the url to user that is on android?
is it possible to create a universal url that will work on both platform?
EDIT: so i will explain what i mean.
the link should be shared using whatsapp and clicking on it should open the app and read the string that is shared with the url (like a id).