title: React Native Local Push Notification
body: <p>I was following the set-up here <a href="https://github.com/zo0r/react-native-push-notification" rel="nofollow noreferrer">https://github.com/zo0r/react-native-push-notification</a> for android, where it states that localPush and localSchedule notifications don't need firebase, however I am getting the error regarding "default firebaseapp is not initialized make sure to call firebaseapp.initializeapp(context) first"</p>
  
  <p>In my app.js</p>
  
  <pre><code>import PushNotification from "react-native-push-notification";
  
  export default class App extends Component {
   constructor(){
      PushNotification.configure({
  
        onRegister: function (token) {
          console.log("TOKEN:", token);
        },
  
        onNotification: function (notification) {
          console.log("NOTIFICATION:", notification);
        },
  
        // Should the initial notification be popped automatically
        // default: true
        popInitialNotification: true,
  
      });
   }
  }
  </code></pre>
  
  <p>In the AndroidMainfest.xml I copied everything except the RNPushNotificationListener from the github</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt;
  
      &lt;uses-permission android:name="android.permission.VIBRATE" /&gt;
      &lt;uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/&gt;
  
      &lt;application ....&gt;
          &lt;meta-data  android:name="com.dieam.reactnativepushnotification.notification_channel_name"
                  android:value="YOUR NOTIFICATION CHANNEL NAME"/&gt;
          &lt;meta-data  android:name="com.dieam.reactnativepushnotification.notification_channel_description"
                      android:value="YOUR NOTIFICATION CHANNEL DESCRIPTION"/&gt;
  
          &lt;!-- Change the value to true to enable pop-up for in foreground (remote-only, for local use ignoreInForeground) --&gt;
          &lt;meta-data  android:name="com.dieam.reactnativepushnotification.notification_foreground"
                      android:value="false"/&gt;
          &lt;!-- Change the resource name to your App's accent color - or any other color you want --&gt;
          &lt;meta-data  android:name="com.dieam.reactnativepushnotification.notification_color"
                      android:resource="@color/white"/&gt; &lt;!-- or @android:color/{name} to use a standard color --&gt;
  
          &lt;receiver android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationPublisher" /&gt;
          &lt;receiver android:name="com.dieam.reactnativepushnotification.modules.RNPushNotificationBootEventReceiver"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.BOOT_COMPLETED" /&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
  
  </code></pre>