'Android aplication actions with slice

I'm trying to implement app actions with slice

my action in actions.xml :

        <fulfillment urlTemplate="content://ro.test.example/hello/{?featureParam}" fulfillmentMode="actions.fulfillment.SLICE">
       
            <parameter-mapping urlParameter="featureParam" intentParameter="feature" />
        </fulfillment>

        <!-- Define parameters with inventories here -->
        <parameter name="feature">
            <entity-set-reference entitySetId="featureParamEntitySet"/>
        </parameter>

    </action>

my slice provider

<provider
     android:name=".MySliceProvider"
     android:authorities="ro.test.example"
     android:grantUriPermissions="true"
     android:exported="true">
           <intent-filter>
               <action android:name="android.intent.action.VIEW" />
               <category android:name="android.app.slice.category.SLICE" />
               <data
                   android:host="example.test.ro"
                   android:pathPattern="/hello"
                   android:scheme="https" />

               <data
                   android:host="example.test.ro"
                   android:pathPattern="/hello/"
                   android:scheme="https" />
               <data
                   android:host="example.test.ro"
                   android:pathPattern="/hello/.*"
                   android:scheme="https" />
               <data
                   android:host="example.test.ro"
                   android:pathPattern="/"
                   android:scheme="https" />
           </intent-filter>
       </provider>

My slice shows ok with slice viewer My slice shows ok with Android App actions test tool

From terminal i try "adb shell am start -a android.intent.action.VIEW -d "content://ro.test.example/hello/test" with no success ; "Error: Activity not started, unable to resolve Intent"

But when i use google assistent "show me on <app_name>" it say's "opening test app action" but then it toast "app isn't install"

Any help ? Thanks

LE : action with deeplink ( not with slice ) works fine



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source