Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

How to change app name or calling name? #27

Open
EdnaGrapples opened this issue Apr 13, 2021 · 1 comment
Open

How to change app name or calling name? #27

EdnaGrapples opened this issue Apr 13, 2021 · 1 comment

Comments

@EdnaGrapples
Copy link

EdnaGrapples commented Apr 13, 2021

In this example the apps name is FitActions and I have to call "Ok Google. Start running in Fitactions". When I would apply thatr in my app, for sure the apps name will not be FitActions. Assuming I named my app Kawabanga so that I want to trigger by Ok Google. Start running in Kawabanga . What do I need to change?

I changed it, and the App Action Tool plugin tells me "Preview Creation Error Status Code: 400 Message: Precondition check failed."

  1. Loggen in on Android Studio with my Google developer Account
  2. Logged in on Google Assistant on my phone with same account
  3. Created google-services.json on Firebase Console for project kawabanga-12345 . Also in actions example replaced https://fitactions.firebaseapp.com/start{?exerciseType} by https://kawabanga-12345.firebaseapp.com/start{?exerciseType}

Is it really required to pusblish the appId in the Google Play Console? It is not mentioned in the steps earlier.
Whats wrong for the above error message and what am I missing?

@EdnaGrapples
Copy link
Author

EdnaGrapples commented Apr 13, 2021

I already applied following refactorings - in vain:

  • renamed app name, package naming with e.g. kawabanga
  • created firebase project Kawabanga
  • replaced all fit-actions accurrances accordingly in Manifest.xml, gradle files and actions.xml
  • uploaded singed apk to Google Play store as internal testing

The created google-services.json says amongst others
"storage_bucket": "kawabanga-12345.appspot.com"
I replaces this also in the actions.xml with:
<fulfillment urlTemplate="https://kawabanga-12345.firebaseapp.com/start{?exerciseType}">
and also in the intent-filter:

            <!-- 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="kawabanga-12345.firebaseapp.com"
                    android:scheme="https" />
            </intent-filter>

but I dont see where this is documented where to add what?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant