AppMeasurementReceiver

public final class AppMeasurementReceiver extends WakefulBroadcastReceiver

A BroadcastReceiver for Firebase Analytics. Firebase Analytics requires this receiver to be correctly declared in AndroidManifest.xml and enabled:

<manifest>
   <application>
     <!-- ... -->

     <receiver android:name="com.google.android.gms.measurement.AppMeasurementReceiver"
         android:enabled="true">
         <intent-filter>
             <action android:name="com.google.android.gms.measurement.UPLOAD" />
             <action android:name="com.android.vending.INSTALL_REFERRER"/>
         </intent-filter>
     </receiver>

     <!-- ... -->
   </application>
 </manifest>
 

Public Constructor Summary

Public Method Summary

void
doStartService(Context context, Intent service)
void
onReceive(Context context, Intent intent)

Inherited Method Summary

Public Constructors

public AppMeasurementReceiver ()

Public Methods

public void doStartService (Context context, Intent service)

public void onReceive (Context context, Intent intent)

Send feedback about...

Need help? Visit our support page.