Firebase Cloud Messaging (FCM) is the push notification system BlueBubbles uses to wake up client apps when new iMessages arrive. Instead of keeping a persistent connection open, the server sends an FCM push notification to your registered device, which then fetches the new data over the REST API. The FCM service in the SDK gives you two operations: fetching the server’s FCM client configuration (needed to initialize Firebase on the client side) and registering a device to receive those notifications. Access the service throughDocumentation Index
Fetch the complete documentation index at: https://bluebubbles.anmho.com/llms.txt
Use this file to discover all available pages before exploring further.
client.fcm.
To use FCM with the BlueBubbles Server, you must have Firebase configured on
your server. Follow the BlueBubbles Server setup guide
to upload your FCM credentials before calling these endpoints.
FCM client configuration
getFcmClientConfig()
Returns the FCM client configuration from your BlueBubbles Server. Use this configuration to initialize the Firebase SDK on your client application so it can register for push notifications through the correct Firebase project.
Signature
Device registration
registerDevice()
Registers a device with the BlueBubbles Server so it can receive FCM push notifications. You generate the FCM identifier (also called a registration token) by authenticating with Google Firebase on the client side, then pass it to this endpoint so the server knows where to send notifications.
Signature
A human-readable name for the device being registered. This helps you
identify registered devices in the server UI. Example:
"pixel5a".The FCM registration token generated when your client app authenticates with
Google Firebase. The server uses this token to route push notifications to
your specific device.