1

Recently Google released Google Play Install Referrer API (announcement).

there are various duplicates to this question but no clarity regarding it.

need a exact way of testing this code before publishing.

InstallReferrerClient mReferrerClient

mReferrerClient = InstallReferrerClient.newBuilder(this).build();
mReferrerClient.startConnection(new InstallReferrerStateListener() {
    @Override
    public void onInstallReferrerSetupFinished(int responseCode) {
        switch (responseCode) {
            case InstallReferrerResponse.OK:
                // Connection established
                break;
            case InstallReferrerResponse.FEATURE_NOT_SUPPORTED:
                // API not available on the current Play Store app
                break;
            case InstallReferrerResponse.SERVICE_UNAVAILABLE:
                // Connection could not be established
                break;
        }
    }

    @Override
    public void onInstallReferrerServiceDisconnected() {
        // Try to restart the connection on the next request to
        // Google Play by calling the startConnection() method.
    }
});
atish naik
  • 226
  • 2
  • 11
  • publish on beta or alpha.. make couple of test users for that app and you can test it with those users – V-rund Puro-hit Oct 10 '18 at 05:41
  • done but if we are still getting utm source %20set and same for utm meduim.how can i fix the %20set issue .do i need some exact url format? – atish naik Nov 22 '18 at 19:33

0 Answers0