InstallReceiver

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 Airship InstallReceiver
new InstallReceiver().onReceive(context, intent);

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

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun onReceive(@NonNull context: Context, @Nullable intent: Intent)

Inherited functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getSentFromUid(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun peekService(myContext: Context, service: Intent): IBinder
Link copied to clipboard
Link copied to clipboard
fun setOrderedHint(isOrdered: Boolean)
Link copied to clipboard
fun setResult(code: Int, data: String, extras: Bundle)
Link copied to clipboard
fun setResultCode(code: Int)
Link copied to clipboard
Link copied to clipboard
fun setResultExtras(extras: Bundle)