Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"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

like image 581
wojciech_maciejewski Avatar asked Nov 26 '18 12:11

wojciech_maciejewski


1 Answers

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.

like image 175
najm Avatar answered Sep 21 '22 14:09

najm