深度链接,Android应用链接,Firebase动态链接和应用索引之间的区别 [英] Difference between Deep Links, Android App Links, Firebase Dynamic Links and App Indexing

查看:267
本文介绍了深度链接,Android应用链接,Firebase动态链接和应用索引之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下是在导航组件中使用深层链接的说明:

Here is an explanation of using deep links in navigation component:


> https://developer.android.com/guide/navigation/navigation-deep-link

它说:


显式深层链接是a的单个实例使用PendingIntent的深层链接将用户带到您应用中的特定位置。当用户通过显式深层链接打开您的应用程序时,将清除任务返回堆栈,并用深层链接目标替换。

An explicit deep link is a single instance of a deep link that uses a PendingIntent to take users to a specific location within your app. When a user opens your app via an explicit deep-link, the task back stack is cleared and replaced with the deep link destination.

现在的问题是深度链接 Android应用链接应用索引之间有什么区别 Firebase动态链接,什么时候应该使用它们中的每一个?

Now the question is what are the differences between Deep Links, Android App Links, App Indexing, and Firebase Dynamic Links and when should we use each one of them?

另外,还有一点我们应该全部设置吗?

Also, there is another point that should we set up all of them?

推荐答案

> 深层链接:



如您所知,深层链接是最简单的,完全在您的应用程序中本地化。通过单击特定模式 URI 可以触发活动。该模式是在Android Manifest 中使用 intent-filter 定义的。如果 URI 存在多个处理程序,则Android系统允许用户从对话框中选择目标应用程序。很明显,如果您的应用未安装在设备上,则 Deep Link 不起作用。 URL查询参数承载的应用程序使用的其他数据。

Deep Links:

As you know a Deep Link is the simplest one which is totally local in your app. Activities can be triggered by clicking on a specific pattern URI. The pattern is defined in android Manifest using intent-filter. If multiple handlers existed for a URI, the Android system allows the user to select the target app from a dialog. It is obvious that if your app is not installed on the device, the Deep Link does not work. Additional data which is used by the app carried by URL query params.


  • 要查看其用法示例,请参考

Android应用链接是与 Deep Links 相同,只是差别很小。您的应用可以将自身介绍为特定模式链接的默认处理程序。因此,当有多个应用程序可以处理目标链接时,您的应用程序可以处理它,而不会显示应用程序选择对话框。此外,如果用户不希望该应用成为默认处理程序,则可以从其设备的系统设置中覆盖此行为。 Android应用链接功能仅在Android 6.0(API级别23)及更高版本上可用。

Android App Links are the same as Deep Links with a small difference. Your app can introduce itself as the default handler of specific pattern links. So when there are several apps to handle the target link, your app handles it without showing app-selection dialog. Furthermore, if the user doesn't want the app to be the default handler, they can override this behavior from their device's system settings. Android App Links feature is only available on Android 6.0 (API level 23) and higher.


  • 要查看其用法示例,请参考

动态链接消除了 DeepLink 的弱点。使用动态链接,您可以在所有平台(例如Android,iOS和Web)上以类似方式使用。它将用户无缝地从您的移动网站转移到应用程序中的等效内容(如果用户未在其设备上安装您的应用程序,则在安装应用程序后将显示内容)。此外,您可以在Firebase控制台中查看动态链接的日志。另一个功能是找出用户单击链接的位置。 (共享链接的地方)

Dynamic Links eliminates DeepLink weaknesses. With Dynamic Links, you treat on all platforms such as Android, iOS and web in a similar way. It seamlessly transits users from your mobile website to the equivalent content within your app (if the user has not installed your app on her/his device, the content would be shown after app installation). Furthermore, you can see the log of a Dynamic Link in the Firebase console. Another feature is to find out where the user clicked on the link. (Places you share the link)


  • 要查看其用法示例,请参考

应用索引有点不同事情。它的重点是谷歌搜索结果。 Google使用 App Indexing ,对您的应用程序以及网站内容进行索引。如果现有的 URL 的应用程序内和网站相同,则Google会验证您是否拥有这两者。然后,在Google的搜索结果中,在设备上安装了您的应用的用户在单击链接时会直接转到您的应用中的内容。此外,Google可以将应用中的个人内容编入索引。因此,当用户在Google中搜索关键字时,相关的应用内内容将显示在搜索结果中。

App Indexing is a bit different thing. Its focus is on google search results. Using App Indexing, Google indexes the content of your app as well as your website. If the existing URLs in-app and website are the same, Google verifies that you own both of them. Then in Google's search results, users who have installed your app on their devices go directly to the content in your app when they click on a link. Furthermore, it's possible to index personal contents in the app by Google. So when the user searches a keyword in Google, related in-app contents will be shown in search results.


  • 要查看其用法示例,请参阅

这篇关于深度链接,Android应用链接,Firebase动态链接和应用索引之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆