Monday 25 October 2021

Why can't change domain of deeplink in Action XML?

My app create a App Action to open app by google assistant : https://developers.google.com/assistant/app/legacy

This is my action xml:

  <action intentName="actions.intent.START_EXERCISE">  
            <fulfillment urlTemplate="https://test.orion.com/start{?exerciseType}">
                 <parameter-mapping
                    intentParameter="exercise.name"
                    urlParameter="exerciseType" />
            </fulfillment>
  </action>

This is my androidmanifest.xml

<activity android:name=".MainActivity2">
            <!-- Define your supported deeplinks -->
            <intent-filter
                android:autoVerify="true"
                tools:targetApi="m">
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data
                    android:host="test.orion.com"
                    android:scheme="https" />
            </intent-filter>
        </activity>

I had upload to Google Play Console and I using App action test tool, it show message:

no app found to open url

But if i change host and urlTemplate to domain firebaseapp.com (the same https://github.com/actions-on-google/appactions-fitness-kotlin), It is ok.

 android:host="test.firebaseapp.com"

 <fulfillment urlTemplate="https://test.firebaseapp.com/start{?exerciseType}">

Why can't change domain of deeplink in Action XML?



from Why can't change domain of deeplink in Action XML?

No comments:

Post a Comment