Android-SDK 버전 23 업데이트 후 ACTION-VIEW 인 텐트 필터를 사용하여 하나 이상의 활동 추가 검색에서 앱을 색인 할

AndroidManifest.xml에 다음 도구 설명이 표시됩니다 .

Google 검색에서 앱을 색인 할 수 없습니다. ACTION-VIEW 인 텐트 필러로 하나 이상의 활동 추가를 고려하십시오. 자세한 내용은 이슈 설명을 참조하십시오.

앱을 Google 색인으로 가져오고 Google 검색에서 앱을 설치하고 트래 피킹하기위한 딥 링크를 추가합니다.

여기에 이미지 설명을 입력하십시오

누구나 왜 그렇게 설명 할 수 있습니까?



답변

공식 문서에서 :

Google이 앱 콘텐츠를 크롤링하고 사용자가 검색 결과에서 앱을 입력 할 수있게하려면 앱 매니페스트의 관련 활동에 대한 의도 필터를 추가해야합니다. 이러한 의도 필터를 사용하면 모든 활동의 컨텐츠에 딥 링크 할 수 있습니다. 예를 들어, 사용자는 딥 링크를 클릭하여 사용자가 검색하는 제품 오퍼링을 설명하는 쇼핑 앱 내의 페이지를 볼 수 있습니다.

이 링크 사용 사용 앱 콘텐츠에 딥 링크를 활성화 하면 사용법을 알 수 있습니다.

테스트를 사용하여 앱 인덱싱 구현 테스트 방법을 테스트하십시오.

다음 XML 스 니펫은 딥 링크를 위해 매니페스트에 인 텐트 필터를 지정하는 방법을 보여줍니다.

<activity
    android:name="com.example.android.GizmosActivity"
    android:label="@string/title_gizmos" >
    <intent-filter android:label="@string/filter_title_viewgizmos">
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <!-- Accepts URIs that begin with "http://www.example.com/gizmos” -->
        <data android:scheme="http"
              android:host="www.example.com"
              android:pathPrefix="/gizmos" />
        <!-- note that the leading "/" is required for pathPrefix-->
        <!-- Accepts URIs that begin with "example://gizmos” -->
        <data android:scheme="example"
              android:host="gizmos" />

    </intent-filter>
</activity>

Android Debug Bridge를 통해 테스트하려면

$ adb shell am start
        -W -a android.intent.action.VIEW
        -d <URI> <PACKAGE>

$ adb shell am start
        -W -a android.intent.action.VIEW
        -d "example://gizmos" com.example.android


답변

<intent-filter>내부에 아래 코드를 추가하여 경고를 제거 할 수 있습니다<activity>

<action android:name="android.intent.action.VIEW" />


답변

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.app"
tools:ignore="GoogleAppIndexingWarning">

당신은 추가하여 경고를 제거 할 수 있습니다 xmlns:tools="http://schemas.android.com/tools"tools:ignore="GoogleAppIndexingWarning"받는 <manifest>태그입니다.


답변

이 의도 필터를 앱 매니페스트에 선언 된 활동 중 하나에 추가하면이 문제가 해결되었습니다.

<activity
    android:name=".MyActivity"
    android:screenOrientation="portrait"
    android:label="@string/app_name">

    <intent-filter>

       <action android:name="android.intent.action.VIEW" />

    </intent-filter>

</activity>


답변

이 솔루션은 작동합니다.이 경고를 무시하려는 경우

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    tools:ignore="GoogleAppIndexingWarning"
    package="com.example.saloononlinesolution">


답변