Extensions
FcmPush icon

FcmPush

Firebase Cloud Messaging push notifications: device tokens, topics, tray notifications, tap handling, and optional HTTP v1 sending.

23 September 2026v1.0
$7.99
Tools

About

FcmPush uses the official Firebase Messaging SDK. Paste your google-services.json (or ApiKey, ApplicationId and ProjectId) and call Initialize. The extension registers a device token, subscribes to topics, shows tray notifications, and reports taps. Set ServiceAccountJson before Initialize when this app should also send; SendToToken and SendToTopic then use that key. Keep the service account in an admin app you control, not in the app your users install. Data messages that arrive while the app is closed are queued and delivered on the next Screen.Initialize. Android 5.0 (API 21) or newer, with Google Play services.

Features

  • Official Firebase Messaging SDK, configured at runtime — no google-services Gradle plugin
  • Initialize from designer keys or the full google-services.json text
  • Service account is checked during Initialize, then SendToToken and SendToTopic use it
  • Device token, token refresh, and delete
  • Subscribe and unsubscribe to topics
  • Tray notifications in the foreground and for data messages while the app is closed
  • NotificationOpened when the user taps a push, including messages Android drew in the background
  • Android 13 notification permission block
  • Optional HTTP v1 send to a token or a topic from an admin app
  • Android 5.0 (API 21) or newer

Documentation

Firebase Cloud Messaging on the device: tokens, topics, tray notifications, tap handling, and sending. Set ApiKey, ApplicationId and ProjectId (or paste google-services.json). Set ServiceAccountJson too if this app should send, then call Initialize. SendToToken and SendToTopic use that key. Keep the service account in an admin app you control.

Initialized

Event

Firebase is ready. Call GetToken to receive. If ServiceAccountJson was set, SendToToken and SendToTopic are ready too.

GotToken

Event

The device token. Save it on your server or database to send pushes to this device.

ParameterType
tokentext

TokenRefreshed

Event

Firebase issued a new token (first launch, reinstall, or rotation). Update it on your server.

ParameterType
tokentext

TokenDeleted

Event

The token was deleted.

TopicSubscribed

Event

The device is subscribed to the topic.

ParameterType
topictext

TopicUnsubscribed

Event

The device is unsubscribed from the topic.

ParameterType
topictext

PermissionResult

Event

Result of RequestNotificationPermission.

ParameterType
grantedboolean

MessageReceived

Event

A push arrived. data is a dictionary of the message's data keys. whileClosed is true for data messages that arrived while no screen was open and are delivered now.

ParameterType
messageIdtext
fromtext
titletext
bodytext
datadictionary
whileClosedboolean

NotificationOpened

Event

The user tapped a push notification and the app opened. title and body are empty for notifications Android drew while the app was in the background; data is always filled.

ParameterType
messageIdtext
titletext
bodytext
datadictionary

MessageSent

Event

FCM accepted the message. messageName looks like projects/PROJECT/messages/MESSAGE.

ParameterType
messageNametext

ErrorOccurred

Event

Something failed. action is the block that failed; message says why.

ParameterType
actiontext
messagetext

Blocks

FcmPush block 1FcmPush block 2FcmPush block 3FcmPush block 4FcmPush block 5FcmPush block 6FcmPush block 7FcmPush block 8FcmPush block 9FcmPush block 10FcmPush block 11FcmPush block 12FcmPush block 13FcmPush block 14FcmPush block 15FcmPush block 16FcmPush block 17FcmPush block 18FcmPush block 19FcmPush block 20FcmPush block 21FcmPush block 22FcmPush block 23FcmPush block 24FcmPush block 25FcmPush block 26FcmPush block 27FcmPush block 28FcmPush block 29FcmPush block 30FcmPush block 31FcmPush block 32FcmPush block 33FcmPush block 34FcmPush block 35FcmPush block 36

Compatible platforms

MIT App InventorKodularNiotronAndroid BuilderThunkable

Related extensions