public class

InstallReceiver

extends BroadcastReceiver
java.lang.Object
   ↳ android.content.BroadcastReceiver
     ↳ com.urbanairship.analytics.InstallReceiver

Class Overview

Tracks Google Play Store install referrals. The receiver needs to be added to the manifest before the install referrals will be tracked:

 <receiver android:name="com.urbanairship.analytics.InstallReceiver" exported="true">
     <intent-filter>
         <action android:name="com.android.vending.INSTALL_REFERRER" />
     </intent-filter>
 </receiver>
 
 
Only a single receiver is able to handle the "com.android.vending.INSTALL_REFERRER" action. To handle multiple receivers, instead of registering the InstallReceiver, register a custom receiver that notifies multiple receivers:
 // Notify the Urban Airship InstallReceiver
 new InstallReceiver().onReceive(context, intent);

 // Notify other receivers
 new OtherReceiver().onReceive(context, intent);
 
 

Summary

Public Constructors
InstallReceiver()
Public Methods
void onReceive(Context context, Intent intent)
[Expand]
Inherited Methods
From class android.content.BroadcastReceiver
From class java.lang.Object

Public Constructors

public InstallReceiver ()

Public Methods

public void onReceive (Context context, Intent intent)