[PAID] Firebase Messaging - An Extension for Receiving Push Notifications with FCM (Discontinued)

icon Firebase Cloud Messaging

Hello everyone, I am here with my new extension that is Firebase Cloud Messaging. This extension helps you to deliver push notifications and messages to your app like One Signal push notifications. You can send notifications or messages to a specific group or topic after subscribing for specific users and You can also send to individual users by their user tokens.

Let see its blocks and their documentation


All Blocks




Designer Properties

image


Documentation

Let see the documentation now.

Message Received

component_event

This event raises when a message is received. No notification will be shown when a message received.

Notification Received

component_event (1)

This event raises when a push notification is received. You can send push notification with API or Send Notification block. Returns the id, title, body and data from the notification. You can use the id to clear the notification with ClearNotification block.

Subscribed

component_event (2)

This event raises when you subscribed a topic. Returns the topic name when subscription is success otherwise Error Occurred event will be triggered.

Unsubscribed

component_event (3)

This event raises when you unsubscribed a topic. Returns the topic name when unsubscription is success otherwise Error Occurred event will be triggered.

Error Occurred

component_event (4)

This event raises when any error is occurred. Returns the error in string.

Message Sent

component_event (5)

This event raises when you used Send Message block and message is sent successfully. Return the response returned by Firebase that contains message id.

Notification Sent

component_event (6)

This event raises when you used Send Notification block and notification is sent and shown successfully. Return the response returned by Firebase that contains message id.

Initialize

component_method

Initializes the Firebase Messaging Component. You must set your API details first before calling it.

IsInitialized

component_method (1)

Return true if the Firebase Messaging Component is initialized.

Get Token

component_method (2)

Get user token which can be used to send notifications to user personally, You will get the token in GotToken event or if failed then Error Occurred will be triggered.

Subscribe

component_method (3)

This block subscribe a topic to receive all notification or messages on that particular topic. Subscribed event will be triggered when it success with topic name.

Unsubscribe

component_method (4)

Unsubscribe a subscribed topic user would not be able to receive notification of that topic then. Unsubscribed event will be triggered when it success.

OpenScreenOnNotificationClick

component_method (5)

This block stores the screen which will be opened when the notification will be clicked. You can pass the start value too.

Clear Notification

component_method (6)

This block clear the notification for given id. You can get the id from Notification Received event.

SendMessageToTokens

component_method (10)

This block send the message to given list of user tokens. Push Notification will not be shown. After sent successfully, Message Sent event will be triggered with response. And for other users Message Received event will be triggered.

data :- data parameter accept a dictionary with the data or message that you want to send.

SendMessageToTopic

component_method (9)

This block send the message to given topic. Push Notification will not be shown. After sent successfully, Message Sent event will be triggered with response. And for other users Message Received event will be triggered. All users that has subscribed this topic will receive the message.

data :- data parameter accept a dictionary with the data or message that you want to send.

SendNotificationToTokens

component_method (8)

This block send the Push Notification to given list of user tokens. A Push Notification will be shown to all given users tokens and on clicked the screen will be opened that is given with given start Value. Notification Sent event will be triggered for user that sent the notification and Notification Received event will be triggered if the app is open.

title :- Title of the push notification.
body :- Content text of the push notification.
largeIcon :- A large icon that will be shown right side of the notification. It can be null.
data :- data parameter accept a dictionary with the data or message that you want to send.

SendNotificationToTopic

component_method (7)

This block send the Push Notification to given topic. A Push Notification will be shown to all users that has subscribed this topic and on clicked the screen will be opened that is given with given start Value. Notification Sent event will be triggered for user that sent the notification and Notification Received event will be triggered if the app is open.

title :- Title of the push notification.
body :- Content text of the push notification.
largeIcon :- A large icon that will be shown right side of the notification. It can be null.
data :- data parameter accept a dictionary with the data or message that you want to send.

API Details

image

These property set the API details of the firebase.

Priority

component_set_get

Set the priority of the notification.

Enable Sound

component_set_get (1)

Enable the sound on notification.

Small Icon

component_set_get (2)

Set the small icon of the notification


Usage

Before able to receive the notifications from firebase you have to initialize the Firebase Messaging Component with your API details.

Details Required

  • Web API Key :- Web API key of your project located at Project Setting.
  • App ID :- App ID of your app that you have added located at Project Setting.
  • Project ID :- ID of your project located at Project Setting.
  • Sender ID :- Sender ID of your project located at Project Setting → Cloud Messaging
  • Server Key (for sending notifications) :- Server Key located at Project Setting → Cloud Messaging

Initializing the Firebase

After filling all the details just call initialize block to initialize the Firebase.

blocks

Error Occurred will be raised if the initialization failed by any error.

Fetching User Token

image

Subscribing Topics

image

Sending Notification

Notification Click

blocks (2)

Tutorial


Preview

82ce5128ce10c05cf7882c4862bb104b4292c729

32119364ed50e72edda649e6e1824d81b06b6a40


Price

Paytm/UPI :- ₹700
PayPal :- 11$

How to buy the extension


Donate


Credit

Thanks @Shreyash for the super power full Rush .
Thanks @vknow360 for helping me in this extension. You helped me a lot thank you again my friend.

Like the extension if you like it :+1:

Suggestion and issue are welcome

Thanks you
Sumit​:wink:

33 Likes

Good Work, @iamwsumit :+1:

2 Likes

I think i asked you about that​:thinking:

This is insane :fire:

2 Likes

is it possible to have a trial .apk? to see if it actually works fine

2 Likes

it work in the background?

Demo APKs aren’t available for paid extensions. I can show you Screenshots and videos.

Yes.

2 Likes

Nice! It was what I was looking for!

It’s work like one :signal_strength: Signal

2 Likes

@iamwsumit He answered yes.
Great job.

1 Like

video please

1 Like

I was searching if it contains the Firestore blocks so that it could help me to migrate from Realtime Database which seems to be risk @iamwsumit can you add Firestore in the aix?

1 Like

@iamwsumit

Hi Koders, the extension works great it’s perfect. I really have to congratulate
@iamwsumit umit1334 for the making and he is really so helpful. Thanks

1 Like

It works very well.

Congratulations.

1 Like


Was this a promotion?! :laughing:

1 Like

You should mention that it isn’t working with Firebase Auth.

1 Like

Great extension as usual. Does notification work when the app is closed?

I already answered this here.

The extension works with Firebase Auth however, Firebase Auth doesn’t work with extension. So correct your post please.
I am finding a solution to it.

2 Likes

The app closes on startup so it works not with Firebase Auth and Firebase Auth works not with it.

I’m not mad, I’m just saying you should mention it in your topic before more buy it and it doesn’t work.

The real question should be that whether extension works or not? I am positive about that.
An extension developer is obviously not going to test an extension with every single component available.

You mean extension is not working? Or it is not working with a xyz component?
That should be your problem if it doesn’t work with some xyz component. Extension has not problem if it can do what it is made for.

2 Likes