Lazarus

Programming => Operating Systems => Android => Topic started by: pasquale on January 20, 2021, 02:08:46 pm

Title: [LAMW] How to send a Whatsapp message
Post 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
Title: Re: [LAMW] How to send a Whatsapp message
Post by: Segator on January 20, 2021, 04:35:57 pm
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
Title: Re: [LAMW] How to send a Whatsapp message
Post by: pasquale on January 20, 2021, 05:00:21 pm
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
Title: Re: [LAMW] How to send a Whatsapp message
Post by: jmpessoa on January 20, 2021, 09:26:47 pm
googling...

Quote
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...)

Title: Re: [LAMW] How to send a Whatsapp message
Post by: almsoares on January 20, 2021, 10:16:33 pm
https://github.com/groupsc10/WBot

https://www.youtube.com/watch?v=JT7P0asACjI&feature=youtu.be

TinyPortal © 2005-2018