Hi all,
Trying to invoke whatsapp but it didn't work, anyone has an idea why?
This is the code that I used. the B4A sub was generated by AI
[CODE lang="b4x" title="Open WhatsApp from B4A app"]Sub OpenWhatsApp
Try
Dim i As Intent
i.Initialize(i.ACTION_VIEW, "https://api.whatsapp.com")
i.SetPackage("com.whatsapp")
StartActivity(i)
Catch
ToastMessageShow("WhatsApp not Installed", True)
End Try
End Sub[/CODE]
Edit:
The required action is to open the WhatsApp App on the phnone, not the WhatsApp website URL