分支量度上的Andr​​oid应用链接 [英] branch metrics link on Android app

查看:254
本文介绍了分支量度上的Andr​​oid应用链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是科库在Android生成,我通过短信发送后链接。如果用户没有应用程序安装在手机上,你的链接是否正确地转移到Play商店(在仪表板中的链接)。安装并运行该应用程序后,它按预期链路接收的所有数据。

I'm using Branch lib an Android to generate links that I send afterwards via sms. If user has no app installed on the phone, your link correctly transfers to Play Store ( the link in the dashboard ). After installing and running the application it receives all data from the link as expected.

不过,如果我有应用程序已经安装在手机上,pressing链接不会打开应用程序,但再次重定向我Play商店。如果我preSS的打开按钮,在那里,应用程序接收到关于直接从浏览器中运行应用程序的信息,但如何?我看到我们的iOS执行相同的lib和它完美的作品 - 也就是当我有应用程序,我preSS的链接它会打开应用程序,而不送我去商店

However, if I have the app already installed on the phone, pressing the link does not open the app but redirects me again to Play Store. If I press the "Open" button there, the app receives the information but how about running the application directly from browser? I saw our iOS implementation of the same lib and it works flawlessly - i.e. when I have the app and I press the link it opens the app without sending me to store.

也许我做错了什么事,我在舱单申报?

Perhaps I did something wrong in my declaration in the manifest?

由于提前,

卡林

推荐答案

Chrome需要符合什么是你的Andr​​oid清单中定义正常打开您的设备上找到应用程序的意图字符串。如果有什么的了,不会的Chrome打开应用程序。如果您使用分会深层链接,你需要确保下面的比赛:

Chrome requires an intent string that matches what's defined inside your Android Manifest to properly open an application found on your device. If something's off, Chrome wont open the app. If you're using Branch for deeplinks, you need to make sure the following match:

TL; DR,确保这些比赛在分公司的仪表板和舱单

TL;DR, make sure these match on Branch dashboard and Manifest


    分支仪表盘
  • 包的名称是一样的你的应用程序生成的

  • 主机上的活动=开放,因为科格式意图字符串作为的方案://打开

  • 在分公司登记在册的URI方案是在你的Andr​​oidManifest.xml中发现了同样的

  • 同样的活动具有以下属性:android.intent.category.BROWSABLE

较长的解释是,科需要绑定到您的帐户链接,构建一个Intent字符串,如下所示:

The longer explanation is that Branch takes the link tied to your account, and constructs an Intent string that looks like the following:

intent:
HOST/URI-path // Optional host 
#Intent; 
  package=[string]; 
  action=[string]; 
  category=[string]; 
  component=[string]; 
  scheme=[string]; 

结束;

在分公司做重定向,我们拉的方案,提供从您的账户,并假设你已经设置的android:主机打开

When Branch does the redirect, we pull the scheme and package from your account, and assume you have set android:host as open:

意图://打开#意向书,计划=方案;包=包;末

intent://open#Intent;scheme=scheme;package=package;end"

和地方,里面的 window.location的。如果你的仪表板或包中的注册计划不匹配,或打开未在 Android的定义:主机键,然后你会被带到Chrome浏览器。

And place that inside window.location. If the registered scheme on your dashboard or package don't match, or open isn't specified in the android:host key, then you'll be taken to Chrome.

这也是很重要的指定以下 android.intent.category.BROWSABLE 作为一个类别过滤器。对意图字符串的更多信息这里

It's also important to specify the following android.intent.category.BROWSABLE as a category filter. More information on intent strings here.

这篇关于分支量度上的Andr​​oid应用链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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