Hello,
I found a tasker action/task on web that opens a certain whatsapp chat directly..
Intent is quite new to me so i was wondering if anyone is able to do the same using an AM action.
In tasker its a java script function which uses following data.
"#Intent;action=android.intent.action.MAIN;launchFlags=0x14000000;component=com.whatsapp/.Conversation;S.jid=4916308154711%40s.whatsapp.net;S.displayname=MaxMuster;end"
I tried Start Activity action but kept ending up somewhere in Main window of whatsapp
Any ideas?
Best regards & Thanks!
Intent?
Moderator: Martin
Re: Intent?
Hi,
You can use action Start Activity with following configuration:
Action: android.intent.action.MAIN
Explicit Component: checked
Package Name: com.whatsapp
Class Name: com.whatsapp.Conversation
Extras:
putString("jid", "4916308154711@s.whatsapp.net");
putString("displayname", "MaxMuster");
The displayname-line is probably not required.
Alternatively you can also use action Launch Shortcut to open a Whatsapp conversation if you don't want to replace the phone number dynamically.
Regards,
Martin
You can use action Start Activity with following configuration:
Action: android.intent.action.MAIN
Explicit Component: checked
Package Name: com.whatsapp
Class Name: com.whatsapp.Conversation
Extras:
putString("jid", "4916308154711@s.whatsapp.net");
putString("displayname", "MaxMuster");
The displayname-line is probably not required.
Alternatively you can also use action Launch Shortcut to open a Whatsapp conversation if you don't want to replace the phone number dynamically.
Regards,
Martin
Re: Intent?
Thank you!
Well, so i was closer than expected as i can see..
My keys in both putString lines were wrong, also
did not replace %40 with @.
Couldnt use start shortcut action as phone number changes...
Thank you again!
Found another way while messing with it.
Action: android.intent.action.SENDTO
Daten URI: sms:4916308154711
Explicit Component: checked
Package Name: com.whatsapp
Regards!
Well, so i was closer than expected as i can see..
My keys in both putString lines were wrong, also
did not replace %40 with @.
Couldnt use start shortcut action as phone number changes...
Thank you again!
Found another way while messing with it.
Action: android.intent.action.SENDTO
Daten URI: sms:4916308154711
Explicit Component: checked
Package Name: com.whatsapp
Regards!
-
- Posts: 1
- Joined: 30 May 2020 15:30
Re: Intent?
Problem with this approach is that if the number is invalid no error is shown.