React Native Firebase
    Preparing search index...
    • Set a message handler function which is called when the app is in the background or terminated. In Android, a headless task is created, allowing you to access the React Native environment to perform tasks such as updating local storage, or sending a network request.

      Parameters

      • messaging: Messaging

        Messaging instance.

      • handler: (message: RemoteMessage) => Promise<any>

        Called when a message is sent and the application is in a background or terminated state.

      Returns void

      void