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

Version 2

Version 2 of the extension is now released.

What’s New

  • Big Picture is added in notification now.

  • Now notification can launch the URL on clicking.

  • Notification Opened event is added.

  • Custom sound of notification is added that works with application assets.

  • You can send the start value with API while sending notification.

  • You can set the notification priority with API while sending notification.

Bug Fixed

  • Remote Config component was not working with extension is now fixed. (Auth component working was already fixed in a hotfix version).

  • Priority was not working and notification was shown with default priority always is now fixed.

  • App crashing while calling Initialize before setting the properties is now fixed.

  • MessageReceived event was causing error by returning null value is now fixed. (Thanks @72erdelyi for reporting this error).

  • Properties was not working while setting with blocks is now fixed.

  • Notification click was causing APK crash if not used OpenScreenOnNotificationClick is now fixed.(Thanks @mannankhanabdul for reporting this bug)

  • SendNotificationToTokens block was not working. It’s now fixed. (Thanks @ammar5287 for reporting this bug).

  • Notification was not showing in android devices version < 9. Now it’s fixed. (Thanks @ammar5287 for reporting this bug)

  • Sending messages from console was crashing the APK. It’s now fixed. (Thanks @Hadi_Editz for reporting this bug) However, I faced many difficulties to fix it but finally It works now.

Changes

  • Notification style is changed from old style to new message styled notifications (Preview Below).
  • Message Styled Notification works on in Android API 28 and above.
  • Extension is divided into two parts now.
    • FCM Helper :- This extension is just for adding library into the APK. You just have to drag this in your app once. (Size : 280 KB)
    • Firebase Cloud Messaging :- This component do the whole job. Use it normally as above posted in the topic. (Size : 35 KB)

Blocks Added

image

This event will be triggered when the notification clicked. Returns the notification’s info.

image

Clear all the notification of the app.

image

Set the custom sound for notifications from application assets. It does not works with storage files and URLs.

Note

There are some points that you should know about this extension.

  • The extension works fine in all builders. Tested in Kodular, App Inventor and Niotron. However, You require different FCM Helper component’s version in kodular and for other AI2 clones.

  • Start value, priority and big picture notification are only available when you send the notification from rest APIs or inbuilt extension’s block.

  • After Android Version 7, notification sound play only when the priority is set to High. Low and default priority does not play sounds.

  • Extension is tested and working fine in Android Version 7.1.2, 9, 10, and 11.

  • Notification sent from firebase console show the notification itself to collect the stats or report of the shown notification. So the notification style will be affected a lot. Notification Opened and Notification Received event won’t be triggered if the notification sent from console.

Usage

  • Passing Start Value

    blocks (5)

  • Sending Big Picture

    blocks (6)

  • Notification Priority

    blocks (7)

  • Open URL on Notification Click

    blocks (8)

Just pass these keys with values in data parameter while sending notification and we’re good to go.

Preview

  1. Message Styled Notification

    IMG_20211203_212816 (1)

  2. Big Picture Notification

  3. High Priority Notification


Thank you for buying my extension. I hope you’re enjoying the extension.

Send me a PM to get the latest version of the extension. I have sent this version to some koders already. If you did not get then just send a PM.

Thank you
Sumit​ :wink:

12 Likes