Lazarus
Programming => Operating Systems => Android => Topic started by: pasquale on January 20, 2021, 02:08:46 pm
-
Hello,
Is it possible to send a Whatsapp message using LAMW?
Specifically, I have an editbox with some text inside and a button below. When I click on the button, I would like Whatsapp to open up in order for me to select the addressee and send him or her the same text message.
TIA
-
It's posible with an intenmanager, you must know the WhatsApp package name and the paramaters, but the user must by press the send button at end
-
It's posible with an intenmanager, you must know the WhatsApp package name and the paramaters, but the user must by press the send button at end
Having to press the Whatsapp send button is not a problem at all.
I don't know what a "WhatsApp package name" is and how to specify that in the code. Do you know where I can find some sample code?
Thanks
-
googling...
https://faq.whatsapp.com/android/im-an-android-developer-how-can-i-integrate-whatsapp-with-my-app
https://stackoverflow.com/questions/38422300/how-to-open-whatsapp-using-an-intent-in-your-android-app
https://medium.com/@devendrac706/how-to-open-whatsapp-in-android-programmatically-whatsapp-integration-in-android-95ffcecada41
You can mimic these solutions in LAMW
(There are many "IntentManager" in LAMW "demos" folder...)
-
https://github.com/groupsc10/WBot
https://www.youtube.com/watch?v=JT7P0asACjI&feature=youtu.be