<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="io.invertase.firebase.messaging">

  <uses-permission android:name="android.permission.INTERNET"/>
  <uses-permission android:name="android.permission.WAKE_LOCK"/>
  <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

  <application>
    <service android:name="io.invertase.firebase.messaging.ReactNativeFirebaseMessagingHeadlessService" />
    <service android:name="io.invertase.firebase.messaging.ReactNativeFirebaseMessagingService"
             android:exported="false">
      <intent-filter>
        <action android:name="com.google.firebase.MESSAGING_EVENT"/>
      </intent-filter>
    </service>
    <meta-data
      android:name="firebase_messaging_auto_init_enabled"
      android:value="${firebaseJsonAutoInitEnabled}"/>

    <!-- TODO move below TODOs to Notifcations module -->
    <!-- TODO firebase.json -->
    <!-- Set custom default icon. This is used when no icon is set for incoming notification messages.
     See README(https://goo.gl/l4GJaQ) for more. -->
    <!--    <meta-data-->
    <!--      android:name="com.google.firebase.messaging.default_notification_icon"-->
    <!--      android:resource="@drawable/ic_stat_ic_notification"/>-->
    <!-- TODO firebase.json -->
    <!-- Set color used with incoming notification messages. This is used when no color is set for the incoming
         notification message. See README(https://goo.gl/6BKBk7) for more. -->
    <!--    <meta-data-->
    <!--      android:name="com.google.firebase.messaging.default_notification_color"-->
    <!--      android:resource="@color/colorAccent"/>-->
    <!-- TODO firebase.json -->
    <!--    <meta-data-->
    <!--      android:name="com.google.firebase.messaging.default_notification_channel_id"-->
    <!--      android:value="@string/default_notification_channel_id"/>-->
  </application>
</manifest>
