Radical
How-to guides

Configure Firebase push

Register a native push token and manage topic subscriptions.

Prepare Firebase

Create Firebase apps matching your native identifiers:

PlatformIdentifierApp-owned, gitignored file
AndroidPackage identifiergoogle-services.json
iOSBundle identifierGoogleService-Info.plist

Enable push

Complete local notification setup, then apply capability setup with internalPlugins.pushNotifications: true:

pnpm add @capacitor-firebase/messaging@8.5.2

Configure 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 installation

Keep Firebase files out of Git; send messages through your backend.

See Notifications reference.

On this page