Java Android深度链接不重定向到play store
我已经定制了深度链接,对于使用该应用的用户来说效果很好。但对于没有应用程序的用户,它不会将他们重定向到playstoreJava Android深度链接不重定向到play store,java,android,deep-linking,Java,Android,Deep Linking,我已经定制了深度链接,对于使用该应用的用户来说效果很好。但对于没有应用程序的用户,它不会将他们重定向到playstore <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <c
<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="abc.in"
android:pathPrefix="/abc"
android:scheme="http" />
<action android:name="android.intent.action.VIEW" />
</intent-filter>
协助我将用户重定向到playstore,如果用户没有用于在playstore上重定向的应用程序,请在第行下方使用
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("use your playstore app Link")));
为了使其适用于没有你的应用程序的用户,你可以使用Firebase动态链接。您还可以使用Firebase dynamic link跟踪参数和分析。它是免费使用的。以下是其教程的链接。它有易于遵循的教程 如果您在实现动态链接时发现任何问题,请随时与我联系 您正在使用,这意味着这些是常规的
http://
链接。当用户单击http://abc.in/abc
,将发生以下两种情况之一:
http://abc.in/abc
在他们的web浏览器中http://abc.in/abc
。这可以通过Javascript或HTTP实现(307重定向是最常见的)
但是,请注意,仅此一点还不足以实现完整的深度链接解决方案。你还需要支持
我建议研究托管的深度链接服务,如(完全公开:我在分支团队中)或Firebase动态链接。它们将使您的生活变得更加轻松。问题是在未安装目标应用程序时创建重定向到Play Store的链接,而不是从目标应用程序中打开Play Store。
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("use your playstore app Link")));