GithubHelp home page GithubHelp logo

app-actions-samples's People

Contributors

jdkoren avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

app-actions-samples's Issues

Google Assistant: Sorry, I couldn't find that.

I will follow the steps below to configure my project:
1、add shortcuts.xml , and use meta-data reference on Activity(android.intent.action.MAIN and android.intent.category.LAUNCHER)

<meta-data
                android:name="android.app.shortcuts"
                android:resource="@xml/shortcuts" />

2、config shortcuts.xml as

<?xml version="1.0" encoding="utf-8"?>
<shortcuts xmlns:android="http://schemas.android.com/apk/res/android">
    <capability android:name="actions.intent.GET_THING">
        <intent
            android:action="android.intent.action.VIEW"
            android:targetClass="com.etekcity.vesyncplatform.wellness.ui.WellnessDeviceEnableActivity"
            android:targetPackage="com.etekcity.vesyncplatform">
            <parameter
                android:name="thing.name"
                android:key="query" />
        </intent>
    </capability>
</shortcuts>

3、build generate aab upload to Google Play. I refer https://developer.android.com/guide/app-actions/get-started。
image
image
4、in the end, use Google Assistant test on AS. tips: Sorry, I couldn't find that.
image
image
5、Of course,I say "Hey Google, Find Recipe on ExampleApp" tips: to install tip.but My application was Internal testing version.
image

I don't know which step was wrong, I really need your help. Thank you!

App isn't installed from Google Assistant Tool

I am trying to get the completed version of this working but I'm getting a Toast message saying "App isn't installed" after trying to run the app action using the Google Assistant Plugin. I'm targeting API 33 and I'm currently using Android Studio Dolphin | 2021.3.1 Patch 1. I tried the old version of the codelab and that same error appears.

Custom intent with app action widgets are not working

Hi, I am trying to implement custom intent with the app action widget, but unable to invoke the app from the voice command.
I tried BII GET_EXERCISE_OBSERVATION and it works both from the plugin and assistant voice query, all other BII and custom intent are working normally except the one used with the app widget.
I am confused as either it is a bug or we cannot use custom intent with widgets as some BII are also not eligible for app action widgets.
This link part of document says "Speaking a query to Assistant that triggers a built-in intent (BII) or custom intent configured for widget fulfillment." and I believe this means custom intent can work with app widgets.
here is the code for shortcut

<shortcut
        android:shortcutId="GET_DATA"
        android:shortcutShortLabel="@string/activity_get_data">
        <capability-binding android:key="custom.actions.intent.GET_DATA_OBSERVATION">
            <parameter-binding
                android:key="aboutGetData"
                android:value="@array/getDataSynonyms"/>
        </capability-binding>
    </shortcut>

and capability

<capability android:name="custom.actions.intent.GET_DATA_OBSERVATION"
        app:queryPatterns="@array/getDataQueries">
        <app-widget
            android:identifier="GET_DATA_OBSERVATION"
            android:targetClass="PUT_YOUR_APPLICATION_ID_HERE.fitactions.widgets.StatsWidgetProvider"
            android:targetPackage="PUT_YOUR_APPLICATION_ID_HERE">
            <parameter
                android:name="aboutGetData"
                android:key="aboutGetData"
                android:required="true">
            </parameter>
            <extra android:name="hasTts" android:value="true"/>
        </app-widget>
        <intent
            android:identifier="GET_DATA_FALLBACK"
            android:action="android.intent.action.VIEW"
            android:targetClass="PUT_YOUR_APPLICATION_ID_HERE.fitactions.widgets.StatsWidgetProvider">
        </intent>
    </capability>

and this is my query array

 <array name="getDataQueries">
        <item>get data from last activity</item>
        <item>get information from last activity</item>
        <item>tell info from last activity</item>
        <item>tell information from last activity</item>
    </array>

    <array name="getDataSynonyms">
        <item>info</item>
        <item>data</item>
        <item>value</item>
        <item>information</item>
    </array>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.