sgeraDocs
Push notifications

React Native

Add cross-platform push notifications to React Native apps.

The @msgera/push package integrates with @react-native-firebase/messaging to register Android and iOS devices and report delivery and click events.

1. Install packages

npm install @msgera/push @react-native-firebase/app @react-native-firebase/messaging @notifee/react-native

2. Initialize & request permission

import { AppRegistry } from "react-native";
import { registerBackgroundHandler } from "@msgera/push";
import App from "./App";

registerBackgroundHandler();
AppRegistry.registerComponent("YourApp", () => App);