Can't open shortcut Intent using "Suggest shortcuts In-App Promo SDK"

Viewed 101

I followed all steps from https://developers.google.com/assistant/app/in-app-promo-sdk and it still isn't working does anyone know why this isn't working for me?

The error message is

com.google.assistant.appactions.suggestions.client.ClientException: Failed to verify the APK signature. If this is a development build, please make sure to update the preview of your app in the App Actions Test Tool.

Here is the code for open ShortcutSuggestion Intent.

val orderShortcut = AppShortcutSuggestion.builder()
                        .setAppShortcutIntent(appShortcutIntent)
                        .setCommand("order my bubble tea")
                        .build()

                shortcutsClient.createShortcutSuggestionIntent(orderShortcut)
                    .addOnSuccessListener { intent ->
                        application.startActivity(
                            intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
                        );
                    }.addOnFailureListener {
                        Log.e("Log", "Failed to get shortcut settings intent", it);
                    }
0 Answers
Related