Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

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

google play - "com.android.vending.INSTALL_REFERRER" somehow parameters are lost and changed to (not%20set)

I have a problem with INSTALL_REFERRER broadcast in my app.

I'm trying to create some information about campaign etc, but on most devices my url "https://play.google.com/store/apps/details?id=com.test.apptest&referrer=utm_source%3Dmy_test_source"

EDIT: the same thing happens with link "market://details?id=com.test.apptest&referrer=utm_source%3Dmy_test_source"

is change to something like

"utm_source=(not%20set)&utm_medium=(not%20set)"

I don't know what is the reason for such a behaviour of google play store app but maybe someone has deal with that ?

EDIT 2: It looks like that it has something to do with google play store app version. on version 12.5.15-all everything works fine and as expected, on devices with version 12.5.30 comes only (not set)

EDIT 3: answering comment from Harry, I have only a email from google developers support. For now I replaced referred link with firebase dynamic links which works ( but not utm_source, need to do your custom link)

enter image description here regards Wojtek

See Question&Answers more detail:os

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

1 Reply

0 votes
by (71.8m points)

You're most likely logged into a managed account (e.g. a work email). It doesn't matter if you have your personal account active in Play Store. The Play Store consistently checks all accounts that you're signed into on that phone. If any of them are managed by an enterprise then the Play Store resets the referrer token. You can verify this by removing said account and retry sending the token.

I can't speak to why this is the intended behavior but perhaps someone from Google can shine some light.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...