1

現在の Play ストア ビルドでは、クエリが検索されると、ストーリーが存在する場合、アプリが検索結果に表示されます。しかし、最新のコードでは、使用play services version 9.0.0 して使用してfirebaseいます。これらの変更を追加した後、アプリは検索結果に表示されません。プレイストアのビルドのみ検索結果に表示されるというルールはありますか? Auto Complete Textview正常に動作しています。提案をクリックすると、アプリが起動します。また、以下のケースでアプリをテストしました。

1. From terminal 
2. Using Bar Code Scanner App
3. Changing Edit Configurations -> Launch(Url selected) and pasted the deeplink url

3 つのケースすべてで、問題なく動作し、アプリを起動しました。AutoComplete Textview も正常に動作しています。Google アプリと Chrome の両方で検索候補に表示されないのは、私たちのアプリだけです。ただし、playstore ビルドがインストールされている場合、同じクエリでアプリが表示されます。

以下は私のルートbuild.gradleです:

 dependencies {
            classpath 'com.android.tools.build:gradle:1.3.0'
            classpath 'com.google.gms:google-services:3.0.0'
        }


app module build.gradle :

dependencies{
     compile 'com.google.android.gms:play-services-appindexing:9.0.0'
}
apply plugin: 'com.google.gms.google-services'

google-services.jsonまた、 app ディレクトリにを追加しました

これは私の appIndexing アクティビティです:

        <activity
            android:name="packagename.deeplinking.ui.GoogleSearchIndexingActivity"
            android:launchMode="singleTop">

            <intent-filter android:autoVerify="true">
                <action android:name="android.intent.action.VIEW" />

                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />

                <data
                    android:host="hostname"
                    android:scheme="custom_scheme" />
            </intent-filter>
</activity>

以下のリンクに示されている指示に従い、提案されているようにアプリのインデックス作成 API を統合しました。

  1. https://firebase.google.com/docs/app-indexing/
  2. https://search-codelabs.appspot.com/codelabs/app-indexing#1
4

0 に答える 0