Configure Your App For Push Notifications

To configure your app to receive FCM push notifications, you need to do the following:

  1. From Android Studio, open your project.
  2. Navigate to the app folder, then from the src > main folder, locate your AndroidManifest.xml file. AndroidManifest.xml
  3. At the bottom inside the Application tag, add these lines of code:
<!-- Firebase Notifications -->
<service android:name=".MyFirebaseMessagingService">
    <intent-filter>
        <action android:name="com.google.firebase.MESSAGING_EVENT" />
    </intent-filter>
</service>
<service android:name=".MyFirebaseInstanceIDService">
    <intent-filter>
        <action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
    </intent-filter>
</service>
<!-- ./Firebase Notifications -->

results matching ""

    No results matching ""