Friend1 wrote:Hi Desmanto,
Thank you very much for your help. Here is my working flow:
download/file.php?id=1208
If possible i need to send sms to whatsapp group too. But i can't find group ID to do this.
Thanks guys for the flow you provided, it was very useful for my needs. To summary the whole thing:
The Start Activity action works fine with this parameters:
<intentAction>
android.intent.action.VIEW</intentAction>
<categoryListEnabled>false</categoryListEnabled>
<categoryList>android.intent.category.DEFAULT</categoryList>
<dataEnabled>true</dataEnabled>
<data>
https://api.whatsapp.com/send?phone={ph ... ssage_text}</data>
<dataTypeEnabled>false</dataTypeEnabled>
<dataType>
text/plain</dataType>
<explicitComponent>true</explicitComponent>
<packageName>
com.whatsapp</packageName>
<className>
com.whatsapp.TextAndDirectChatDeepLink</className>
<flagList>FLAG_ACTIVITY_NEW_TASK</flagList>
<extras></extras>
<waitForResult>false</waitForResult>
<accessResultExtras></accessResultExtras>
The result is the opening of com.whatsapp.Conversations activity, on the specific contact with the "phone_number", with the message "message_text" in the input space. The only thing that remains is clicking the send button using Control UI: clickById("com.whatsapp:id/send");
As far as i understood from the forums, the effective sending of the message cannot be achieved by any intent, you always have to click the send button manually or with the Contol UI action.