从Mozilla Firefox重定向到Android应用-深度链接 [英] Redirect from Mozilla Firefox to Android app - Deep Linking

查看:114
本文介绍了从Mozilla Firefox重定向到Android应用-深度链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用一个意图过滤器来允许深度链接到我的应用程序的活动。
像下面的示例所示:
https: //developer.android.com/training/app-indexing/deep-linking.html

I use an intent filter to allow deep linking to an activity of my application. Like in the example given below: https://developer.android.com/training/app-indexing/deep-linking.html

重定向到我的应用程序在Google Chrome和Android浏览器,但是当我使用Firefox时,问题是Firefox启动了我的应用程序的新实例,而不是将我重定向到已经启动的应用程序实例。此外,新的启动应用程序似乎正在通过Firefox运行。

The redirection to my app works fine with Google Chrome and the Android Browser but when i use Firefox, the problem is that Firefox launches a new instance of my app, instead of redirecting me to the already launched instance of the app. Moreover the new launhed app seems to be running through Firefox.

以下是:
1)我启动了我的应用程序。如果用户忘记了他的凭据,我会给他发送电子邮件。
2)用户转到他的电子邮件应用程序。
3)在我发送给用户的电子邮件中,有一个帐户激活链接,该链接还会将他重定向到应用程序。

The senario is the following: 1) I launch my app. If the user has forgot his credentials i send him an email. 2) The user goes to his email app. 3) In the email i sent to the user, there is an account activation link which also redirects him back to the application.

可能出什么问题了火狐浏览器?
提前谢谢!

What could be wrong with Firefox? Thank you in advance!

推荐答案

根据此帖子,Firefox对用户实施了侵入性较小的体验。当打开具有指向应用程序的深层链接的URL时,URL栏将显示带有一个Android小标题的页面操作。单击此链接将打开一个具有Android活动(而不是浏览器)的链接。
您观察到并期望的Android浏览器和Chrome的行为。

According to This Post, Firefox implements a less invasive experience to the user. When an url is opened which has a deep link to an app, the url bar displays a page action with a little Android head. Clicking on this one will open the link with an Android activity other than a browser. The behavior of the Android browser and Chrome you observed and made your expectation.

这篇关于从Mozilla Firefox重定向到Android应用-深度链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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