Skip to content

Commit

Permalink
Don't set install_referrer to the public store URL (#2622)
Browse files Browse the repository at this point in the history
Google doesn't set this either if the referrer is the store app itself. Some apps (Twitch) show confusing information if we do.
  • Loading branch information
DaVinci9196 authored Dec 10, 2024
1 parent 6a941cd commit 2f90ea6
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ public class GetInstallReferrerService extends Service {
// https://developer.android.com/google/play/installreferrer/igetinstallreferrerservice
@Override
public Bundle getInstallReferrer(Bundle request) throws RemoteException {
String packageName = request.getString("package_name");
Bundle result = new Bundle();
result.putString("install_referrer", "https://play.google.com/store/apps/details?utm_source=google-play&utm_medium=organic&id="+packageName);
result.putString("install_referrer", "utm_source=google-play&utm_medium=organic");
result.putLong("referrer_click_timestamp_seconds", 0);
result.putLong("referrer_click_timestamp_server_seconds", 0);
result.putLong("install_begin_timestamp_seconds", 0);
Expand Down

0 comments on commit 2f90ea6

Please sign in to comment.