通过镀铬意图谷歌播放传递引用的数据镀铬、意图、数据

2023-09-04 12:31:18 作者:Promise.(诺言)

所以我有一个移动网络,将尝试打开我的Andr​​oid应用程序,如果它不存在,它会回落到谷歌的发挥。

So I have a mobile web that would try to open my android app, if it does not exist, it would fall back to google play.

镀铬,我用这个目的:

intent://some_data_sent_to_app#Intent;scheme=app_scheme;package=package_name;end

和它做工精细, 现在我想送一些引用字符串添加到Google Play中的应用程序的INSTALL_REFERRER。

and it work fine, now I want to send some referrer string to google play for the INSTALL_REFERRER in app.

我想下面的链接,它必须将数据发送到Google Play上没有问题,但不会尝试打开该应用程序

I tried the following link, it have no problem of sending data to google play, but it would not try to open the app

intent://some_data_sent_to_app#Intent;scheme=app_scheme;package=package_name&referrer=referrer_string;end

我不知道什么是打开应用程序,并回落到谷歌与传递的引用数据发挥了正确的方法是什么?

I wonder what is the correct way to open the app and fall back to google play with the referrer data being passed?

推荐答案

这是我与团队合作的已知问题得到解决。有人在过去的建议,您可以使用intent://some_data_sent_to_app#Intent;scheme=app_scheme;package=package_name&referrer=referrer_string;end然而,这种逻辑也从来没有做过特别是因为Chrome浏览器(和Android浏览器),寻找一个包的ID是被解析为程序包和放串的直接复制,引用= referrer_string

This is a known issue that I am working with the team to get fixed. Someone in the past suggested that you can use intent://some_data_sent_to_app#Intent;scheme=app_scheme;package=package_name&referrer=referrer_string;end however the logic of this has never worked specifically because the Chrome browser (and Android Browser) look for a package id that is direct copy of the string which is parsed as package_name&referrer=referrer_string.