有没有办法将参数传递给应用程序的市场安装程序
当通过网页向移动设备上的用户提供指向 Android 应用程序的链接时,可以将 url 中的参数传递给正在安装的应用程序。
我猜答案是否定的——但问也无济于事。
原因是,在某些情况下,拥有一个从引荐来源网址提取配置信息的通用应用程序会很方便。
when providing a user on a mobile, a link to an android application via a web page, it is possible for params from the url to be passed to the app being installed.
I'm guessing the answer is no - but it doesn't help to ask.
The reasoning being that it would be handy for some situations to have a generic app that pulls config information from the referrer.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这仅适用于使用 引荐跟踪用例“noreferrer">移动应用 SDK 的分析跟踪。该文档将提供更多详细信息,但基本步骤是:
trackEvent
跟踪“首次运行事件”。如果您的应用程序是通过推荐信息下载的,则此事件(以及所有未来的事件和综合浏览量跟踪)将使用推荐信息进行标记。This is possible only for the use case of referral tracking, using the Analytics Tracking for Mobile Apps SDK. The documentation will have more details, but the basic steps are:
trackEvent
. If your app was downloaded with referral info, this event (and all future event and pageview tracking) will be tagged with the referral info.我认为如果需要,您可以稍微更改一下分析引用跟踪的场景,以便在安装过程中将参数传递给您的应用程序...
您必须在自定义接收器解析 url 中为 com.android.vending.INSTALL_REFERRER 声明一个自定义接收器来自市场。
如果您希望分析也能正常工作,最好扩展 com.google.android.apps.analytics.AnalyticsReceiver 并调用 super.onReceive
在引荐中,有两个可选参数:营销活动术语和营销活动内容所以我会把你想要传递的信息放在那里
我对此做了一些工作,我写了一篇文章,我什至解释了如何测试它:http://www.dev-articles.com/article/Analytics-referral-tracking-for-Android-447001
I think you can change a bit the scenario of the anlytics referral tracking to pass parameters to your app during installation if you need...
You have to declare a custom receiver for com.android.vending.INSTALL_REFERRER in the custom receiver parse the url from the market.
If you want the analytics to work as well, is better if you extend the com.google.android.apps.analytics.AnalyticsReceiver and call the super.onReceive
There are two parameters that are optional in the referral the campaign term and the campaign content so I will put there the information you want to pass
I worked a bit on this and I wrote a post where I explain even how to test it : http://www.dev-articles.com/article/Analytics-referral-tracking-for-Android-447001