Search code examples
androidreact-nativereact-native-push-notification

React Native Push Notifications not working


I've been struggling to use react-native-push-notification in one of my projects, I've tried on a clean react native project with no luck. I've been testing on Android. What am I missing? Please help! Here's the link to my demo: https://github.com/platonish/rn-push-notif-demo

react-native: 0.57.5
react-native-push-notification: 3.1.2

Solution

  • turns out I was missing this from my AndroidManifest:

    <meta-data  android:name="com.dieam.reactnativepushnotification.notification_channel_name"
          android:value="YOUR NOTIFICATION CHANNEL NAME"/>
    <meta-data  android:name="com.dieam.reactnativepushnotification.notification_channel_description"
          android:value="YOUR NOTIFICATION CHANNEL DESCRIPTION"/>