Class ReferrerReceiver


public class ReferrerReceiver extends BroadcastReceiver

This class used to keep track of the install referrer from the Play Store for old Play versions and is not needed anymore.

See https://medium.com/appbrain/the-google-play-referrer-api-and-the-appbrain-sdk-38cfbaa350dc for more information.

The install referrer that the AppBrain SDK retrieved from Google Play can be retrieved with `ReferrerReceiver.retrieve(context)`

  • Constructor Details

    • ReferrerReceiver

      public ReferrerReceiver()
  • Method Details

    • onReceive

      public void onReceive(Context context, Intent intent)
      Specified by:
      onReceive in class BroadcastReceiver
    • handleReferrer

      public static void handleReferrer(Context context, String ref, Intent intent)
    • retrieve

      public static String retrieve(Context context)
      Retrieve the referrer String that was retrieved from Google Play.
      Parameters:
      context - The current Android Context
      Returns:
      The referrer String, or null of there was none.