1.Introduction
2. Blocks
3. Docs
4. Usages
Old method
6. Demo
7. Tutorials
8. ChangeLogs
ChangeLog Version 1.1
- Added
ClearNotification
block - Added feature to store all messages in Tiny DB with tag as timestamp
Set namespace toFCM_DATA
to retrieve those messages - Fixed inconsistency in
SendNotificationToTokens
andSendMessageToTokens
blocks - Some internal changes to make future improvements easier to adapt
ChangeLog Version 1.2
- Removed
SoundOn
property - Custom Notification sound feature
Beta tested by @Franklin_Lopez
To send a notification with custom sound, upload mp3 file to assets and send payload like this:
{\"notification\": {\"body\": \"this is a body\", \"default\": \"this is a title\", \"sound2\":\"default\",\"icon\":\"https://res.cloudinary.com/andromedaviewflyvipul/image/upload/c_scale,h_20,w_20/v1571472765/ktvu4bapylsvnykoyhdm.png\"},\n \"priority\": \"high\",\n \"data\": {\n \"click_action\": \"FCM_MESSAGE\",\n \"id\": \"1\",\n \"status\": \"done\"\n },\n \"to\": \"/topics/FCMTEST\""}
Value for sound2
key can be file name ( like test
for test.mp3 ) or none
for no sound or default
for default notification sound.
This key must be present in notification payload otherwise no sound will be played.
Aix size is 500 kb now.
ChangeLog Version 1.3
- Compatible with FSA extension
Tested by @Franklin_Lopez - Aix size reduced to 476 kb
ChangeLog Version 1.4
- New Blocks
You can retrieve messages which were received when app was not running. Returns Dictionary where timestamp is key and value is message content. - Behavior Changes
i) Clicking fcm notification when app is in foreground will open registered screen (or Screen1 if not set), but previous instance of Screen will be created if that screen is already running instead will be resumed.
ii) Now notifications received in background also use small icon. (Earlier app icon was shown) - Internal Changes
*Important changes to adaptHTTP v1 Api
for sending notifications - Aix size reduced to 468 kb
ChangeLog Version 2
- Updated Fcm SDK version to 24.0.0
- Removed Notification Sending blocks (Migrate to FcmSender extension)
- Removed
Notification Sound
property - Fixed notification click issue when no Screen was registered for open
- Resuming Screen from Notification Click also invokes
GotData
event - Added permission handling method and event
- Added
method
parameter toError Occurred
event
hi.. I have sent $10 for purchase ([PAID] FCM: Send and Receive Push Notifications with Firebase Cloud Messaging [$10 or INR 701)
please send the file extension to my email (visiXXXXX@gmail.com)