Useful or not, from you.
react-native-firebase how to show push notification with action buttons when app is in background

push notifications are working fine with actions buttons when app is in foreground and not showing action button when app is background (only notification are showing without action button)

only message no action buttons are there can somebody help me

That's a useful answer
Without any help

@taikim8484 yes I have resolved after i did some changes in the manifest.xml and registered action


   <service android:name="io.invertase.firebase.messaging.RNFirebaseMessagingService">
          <action android:name="" />
      <service android:name="io.invertase.firebase.messaging.RNFirebaseInstanceIdService">
          <action android:name=""/>
      <service android:name="io.invertase.firebase.messaging.RNFirebaseBackgroundMessagingService" />



import { AppRegistry } from 'react-native';
import App from './App';
import backgroundPush from './src/backgroundPush';

AppRegistry.registerComponent('App', () => App);
AppRegistry.registerHeadlessTask('RNFirebaseBackgroundMessage', () => backgroundPush);


import firebase from 'react-native-firebase';

export default async (message) => {
  try {
    const text =;
    const payload = JSON.parse(;
    const localNotification = new firebase.notifications.Notification({
      show_in_foreground: true
      .setTitle('New message')
      .setSubtitle(`Unread message: ${payload.unread_message_count}`)

    const action = new firebase.notifications.Android.Action('Reply', 'ic_launcher', 'My Test Action');
    // Add the action to the notification;

    return firebase.notifications().displayNotification(localNotification);
  } catch (e) {
    return Promise.resolve();