0

I'm currently trying to integrate deeplinks as google assistant shortcuts in my app.

So users add a phrase command, and these shortcuts are then indexed by Google Assistant, and assistant then lists the shortcuts. The only problem is, I can't see the shortcuts anywhere listed.

I tried dynamic shortcuts, using ShortcutInfoCompat, and AssistantShortcutSuggestionClient (Similar to Siri, where users add a phrase command and the shortcut is added to the device, then when user say the phrase it triggers the deeplink)

Below is an example of a dynamic shortcut. When this is pushed, google assistant is supposed to automatically index it. I also have AppActions registered on Google Play console, and my app is on Google play. But nothing. It doesn't work.

val shortcut = ShortcutInfoCompat.Builder(context, "dashboard_shortcut")
 .setShortLabel("Open Dashboard")
 .setLongLabel("Open the dashboard in My App")
 .setIcon(IconCompat.createWithResource(context, R.drawable.ic_dashboard))
 .setIntent(
 Intent(Intent.ACTION_VIEW).apply {
 data = Uri.parse("myapp://dashboard")
 }
 )
 .build()
ShortcutManagerCompat.pushDynamicShortcut(context, shortcut)

Has anyone had any luck with this? Google's documentation is basically non existent, and their plugin for shortcuts hasn't been maintained in years.

https://plugins.jetbrains.com/plugin/16739-google-assistant

So is Google Assistant Shortcuts officially dead for Android? How does Whats app or facebook do this? They must have access to private apis or they registered their app with Google somehow.

I'd appreciate anybody's input here.

Gyul
6846 silver badges18 bronze badges
asked Feb 5, 2025 at 14:42

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.