Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.5k views
in Technique[技术] by (71.8m points)

下载APP后得到推荐码是怎么实现的?

分享出去的链接url会带有参数channelId=xxx (这个链接是下载APP的页面)

用户下载后,我能拿到对应的channelId吗?

现在要做一个功能:
判断用户是通过哪个人分享出去链接下载的,现在是卡在了用户已经下载好APP然后不知道怎么拿到channelId的难题


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

你可以事先和客户端商量好一段特定的字符串里面包含着channel_id,当用户点击下载时,你把这个字符串存到手机剪辑板中,当下载完成用户进入APP中,app扫描用户剪辑板就知道channel_id了,就像淘宝在微信分享的链接一样


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...