I am currently writing an Android app in Kotlin to test out the new built in app actions provided by Google. At the moment, looking at actions.intent.GET_ACCOUNT.
I already have Android Studio, my google assistant and my device all connected with the same developer account. I have also uploaded a draft onto the play store with the same package name. I am able to get the app action to run with the test tool but not able to invoke it via voice using Google Assistant.
I have also consulted this link for help but no luck Android App Actions does not work with voice command
What I am saying into Google Assistant is something along the lines of "Hey Google view my account with Big Money". However, all I get is an online search result. Is there something obvious that I am missing? Thanks!
My Manifest:
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<meta-data android:name="com.google.android.actions" android:resource="@xml/actions" />
<activity
android:name=".views.MainActivity"
android:exported="true"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data
android:scheme="http"
android:host="martymoneybank.com"
android:pathPattern="/account"/>
</intent-filter>
</activity>
</application>
My Action.xml:
<actions>
<action intentName="actions.intent.GET_ACCOUNT" >
<fulfillment urlTemplate="http://martymoneybank.com/account{?accountType}">
<parameter-mapping
intentParameter="account.name"
urlParameter="accountType" />
</fulfillment>
</action>
Test Tool: