Emergency Alerts System Notifications

141 views
Skip to first unread message

Michel Arcato

unread,
Jan 19, 2024, 3:49:24 PM1/19/24
to Firebase Google Group
Hey guys is it possible to trigger an emergency Alert via firebase? 

Since there is files needed like text and Wave file..

im guessing it would a data notification and we send the files, text..then the app handles it?

is there any example out there?

Thx

Arthur Thompson

unread,
Jan 19, 2024, 6:08:40 PM1/19/24
to fireba...@googlegroups.com
Hi Michel,

An FCM message is limited to 4Kb so sending media in the message itself is not a good idea. Instead you can consider:

1. [More common] Use a data message to send the Text of the message along with the path to the media file. Download the media file then construct a visible or audible notification.

2. Ship your app with the media file and then when the message is received construct a notification using the already-on-device media file.

I hope this helps,
Arthur.

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/b1fcd35a-3049-4179-88e5-95b9c6f6cd51n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages