How-to guides
Configure Firebase push
Register a native push token and manage topic subscriptions.
Prepare Firebase
Create Firebase apps matching your native identifiers:
| Platform | Identifier | App-owned, gitignored file |
|---|---|---|
| Android | Package identifier | google-services.json |
| iOS | Bundle identifier | GoogleService-Info.plist |
Enable push
Complete local notification setup, then apply capability setup with internalPlugins.pushNotifications: true:
pnpm add @capacitor-firebase/messaging@8.5.2Configure platforms
Set file paths before regenerating:
notifications: {
android: { googleServices: "./private/google-services.json" },
},Register and manage topics
Send the successful value token through your authenticated backend API:
const notifications = useNotifications(); // @akshatowo/radical/react
notifications.registerPush();
notifications.subscribe("reports");
notifications.unsubscribe("reports");
notifications.lookupTopics(); // Confirmed topics for this installationKeep Firebase files out of Git; send messages through your backend.