Firebase cloud messaging is one of the reliable ways to send push notifications across devices. Extension provides the latest implementation of it. Especially customized accordingly to Kodular.
Blocks
Documentation of all the available blocks.
- Event fired when succeeded to subscribe to a topic.
- Similarly, when the attempt to subscribe gets failed, this event is called.
- message: the error message or the reason
- When unsubscribed successfully from a topic.
- When retrieved the Firebase Instance Token.
- creation: creation time of the token
- expiration: expiration time of the token.
- Event fired when Firebase Instance Token got deleted successfully.
- Block to set up the Firebase configuration.
- projectId: Project Id in this case is the Project Name in Firebase.
- A block to get the instance Id of the user.
- forceRefresh: if the data should be refreshed before retrieving it.
- Deletes the Firebase instance token.
- A block to send notification and data to other users.
- topic: topic to send at
- notification and data: information in dictionary format.
The above blocks is the example.
- Subscribes to a topic. It will listen to incoming data in the background.
Including non-notification data.
- Unsubscribes from a topic.
Cool Thing
You can do one cool thing more using the extension.
Whenever you receive notification or data in the background, at the time, you can also call a procedure right away
This also works if the app is in background.
So in Screen1, you just need to create a block called receivedRemoteMessage
with an argument. The argument will be a dictionary with the data element received.
The notification should not be handled by default FCM.
Powered by the Itoo framework.
Extension
It is a paid extension, since they are not easy to make.
Price USD: 20$
Indian National Rupee: 1600 INR
Screenshots
Tested with Android 12 (left) and Android 13 (right)
make sure to ask notifications permission from android 13 and above
Thanks, if interested leave a reply or message me.
Kumaraswamy