Android上的Firebase动态链接多个重定向

时间:2018-11-14 09:47:33

标签: android firebase firebase-dynamic-links

我正在尝试使用Firebase动态链接在Android上的默认网络浏览器中打开网页。我想使用动态链接,以便我们以后可以更新它,以指向仍在开发中的另一个网页。

代码很简单:

@OnClick(R.id.about_whats_new_row)
public void onWhatsNewClicked() {

    // start intent for web
    Intent intent = new Intent(Intent.ACTION_VIEW);
    intent.setData(Uri.parse(WHATS_NEW_URL));
    this.startActivity(intent);

}

当用户单击链接时,它首先转到Web浏览器,然后重定向回我的应用程序(由于我不想对此内容使用深层链接,该应用程序无法处理它),然后重定向回到网络浏览器。

Gif of undesired behavior

有什么办法可以减少这些重定向?我只想直接在网络浏览器中打开链接。

0 个答案:

没有答案