Whatsapp shortcut doesn't work

507 views
Skip to first unread message

Ahmet K

unread,
Sep 11, 2023, 7:38:47 AM9/11/23
to Automate for Android
"Startshortcut" block doesn't work for whatsapp. But shortcut works on device's launcher when selected from launcher. Also I know some 3rd party launchers that work.
02.png
01.png

Henrik "The Developer" Lindqvist

unread,
Sep 11, 2023, 1:46:44 PM9/11/23
to Automate for Android
Odd, but sadly not much can be done about it, since the block only use the "intent" its given by the other app, e.g. WhatsApp.

Henrik "The Developer" Lindqvist

unread,
Sep 11, 2023, 1:47:36 PM9/11/23
to Automate for Android
Try using the "Pick shortcut" button in an App start block instead.

On Monday, September 11, 2023 at 1:38:47 PM UTC+2 ahka...@gmail.com wrote:

Ahmet K

unread,
Sep 11, 2023, 2:17:35 PM9/11/23
to Automate
Unfortunately the problem is not solved.  There are same problem in Nova launcher, Shortcutmaker, Tasker.  However, there is no problem with shortcuts created in the following applications: Panels, Swiftly switch, Glextor.

11 Eyl 2023 Pzt 20:47 tarihinde Henrik "The Developer" Lindqvist <henrik.l...@gmail.com> şunu yazdı:
Try using the "Pick shortcut" button in an App start block instead.

On Monday, September 11, 2023 at 1:38:47 PM UTC+2 ahka...@gmail.com wrote:
"Startshortcut" block doesn't work for whatsapp. But shortcut works on device's launcher when selected from launcher. Also I know some 3rd party launchers that work.

--
You received this message because you are subscribed to the Google Groups "Automate for Android" group.
To unsubscribe from this group and stop receiving emails from it, send an email to automate-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/automate-user/e25b0995-8e4a-4df5-a2a7-94a1f509b175n%40googlegroups.com.

Ahmet K

unread,
Sep 13, 2023, 5:07:59 AM9/13/23
to Automate
Henrik I found new something with "Shortcut maker". On the left is the normal shortcut that does not work.  On the right is what "Shortcut maker" has made "specially" and it works. So first I create the shortcut with "Shortcut maker".  Then I call it from Automate.  How can it be run without "Shortcut maker"?


03.png

Ahmet K

unread,
Sep 13, 2023, 5:35:11 AM9/13/23
to Automate
Also Tasker works.

<TaskerData sr="" dvi="1" tv="6.2.13-rc">
<Task sr="task19">
<cdate>1694596514931</cdate>
<edate>1694597266257</edate>
<id>19</id>
<nme>Whats</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>20</code>
<App sr="arg0">
<appClass>com.whatsapp.TextAndDirectChatDeepLink</appClass>
<appPkg>com.whatsapp</appPkg>
<label>WhatsApp:TextAndDirectChatDeepLink</label>
</App>
<Str sr="arg1" ve="3">https://wa.me/905300635253</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
</Task>
</TaskerData>

Henrik "The Developer" Lindqvist

unread,
Sep 13, 2023, 7:05:25 AM9/13/23
to Automate for Android
Then try the App start block:

Ahmet K

unread,
Sep 13, 2023, 7:43:14 AM9/13/23
to Automate
Yess! It works. Btw I was trying to do it with extras.  I didn't think with DataURI :(
Anyway we saw that it can be done manually this way.  Accordingly, it is necessary to make the following change in Automate: When the standard Whatsapp shortcut is selected, the phone number can be parsed from the data received from WhatsApp and a shortcut can be created with new parameters.

13 Eyl 2023 Çar 14:05 tarihinde Henrik "The Developer" Lindqvist <henrik.l...@gmail.com> şunu yazdı:
--
You received this message because you are subscribed to the Google Groups "Automate for Android" group.
To unsubscribe from this group and stop receiving emails from it, send an email to automate-use...@googlegroups.com.

Henrik "The Developer" Lindqvist

unread,
Sep 13, 2023, 11:36:44 AM9/13/23
to Automate for Android
No plans for special handling of how shortcuts are supposed to be created in certain apps, it would bee way too much work,
But i'll investigate why Tasker seems to get another kind of shortcut back.

Ahmet K

unread,
Sep 13, 2023, 11:57:39 AM9/13/23
to Automate
I want to make something clear.  In the 4th post (my 2nd post) I stated that Tasker was not working either.  I later found the parameters needed for the solution in ShortcutMaker.  When I looked at the parameters from there and entered them manually in Tasker, it worked.  It now works in Automate with the same parameters.  On the other hand, the standard shortcut step does not work in ShortcutMaker as well.  This solution has been seperately added to app.  It gets the phone number automatically.

13 Eyl 2023 Çar 18:36 tarihinde Henrik "The Developer" Lindqvist <henrik.l...@gmail.com> şunu yazdı:

Ahmet K

unread,
Sep 15, 2023, 7:17:55 AM9/15/23
to Automate

(For information only for those interested)

In the 4th post (my 2nd post) I stated:
There is no problem with shortcuts created in the following applications:

• Panels
• Swiftly switch
• Glextor.

These applications work as follows
(I mentioned it before in post 8.):

When the standard Whatsapp shortcut is selected, the phone number can be parsed from the data received from WhatsApp and a shortcut can be created with new parameters. There is no manual intervention in these applications.

In Automate, Tasker and ShortcutMaker, shortcut can be created manually with the following parameters:

(The phone number will be written where xxxxx appears.)

=============================
||   Automate (app start block)

Package:
"com.whatsapp"

Activity class:
"com.whatsapp.TextAndDirectChatDeepLink"

Data URI:

||
=============================

=============================
||    Tasker  (The following XML file is imported.)

<TaskerData sr="" dvi="1" tv="6.2.13-rc">
<Task sr="task19">
<cdate>1694596514931</cdate>
<edate>1694597266257</edate>
<id>19</id>
<nme>Whats</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>20</code>
<App sr="arg0">
<appClass>com.whatsapp.TextAndDirectChatDeepLink</appClass>
<appPkg>com.whatsapp</appPkg>
<label>WhatsApp:TextAndDirectChatDeepLink</label>
</App>
<Str sr="arg1" ve="3">https://wa.me/xxxxxxxxxxxxxxxxx</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
</Task>
</TaskerData>

||
=============================

=============================
||   ShortcutMaker

Action:
android.intent.action.VIEW

Package:
com.whatsapp

Class:
com.whatsapp/com.whatsapp.TextAndDirectChatDeepLink

Data:

||
=============================


Reply all
Reply to author
Forward
0 new messages