이것은 간단 해 보일지 모르지만 아직 어떻게해야하는지 알 수 없습니다.도메인에만 일치하는 인 텐트 필터 (경로 없음)
사용자가 도메인 URL을 클릭 할 때 내 앱을 열어야합니다. 경로없이 도메인 (android : host)과 URL을 일치시켜야합니다. example.com 또는 example.com/
나는 그것이 (슬래시) example.com/에서 작동하도록,하지만 난 슬래시없이 URL을 캡처 할 수 없습니다 얻을 : 나는 pathPattern를 사용하여 시도
example.com/*, 그것도 작동하지 않습니다. 나는 또는 "/"슬래시를 종료하지 않고 URL과 일치 할,
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="http" />
<data android:scheme="https" />
<data android:host="example.com" />
<data android:host="www.example.com" />
<data android:pathPattern="/*" />
<data android:path="/" />
</intent-filter>
간단히 말 :
다음은 내 안드로이드 매니페스트입니다. http://example.com http://example.com/
이것은 작동하지 않습니다. 경로 인자가 없다면'http : // example.com /'만이 아니라'http : // example.com' ('adb shell start'을 통한 테스트)이 일치합니다. –