Paw*_*ari 2 indexing android deep-linking
虽然我已经通过谷歌的相关文件进行应用程序索引
https://developers.google.com/app-indexing/webmasters/details
但仍然有困惑,如果我想接收关于启动器活动的传入数据并从那里接收If可以控制并启动相关活动/片段,具体取决于对传入URL的一些内部解析.
您必须在单独的<intent-filter>标记中声明操作,类别和数据,而不是在与启动器规范相同的标记中.
<activity>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<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:host="your.domain.com"
android:scheme="http" />
</intent-filter>
</activity>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2037 次 |
| 最近记录: |