13
Views
2
Comments
Firebase notifications web in outsystems
Question

Could someone please provide detailed instructions on how to implement a messaging and notification function using Firebase? Note that this is for the web version, not mobile. Thank you.



UserImage.jpg
Jayaprakash Ramesh

hello, 
here is the steps for you asked about the firebase 

  • Create a project in Firebase and enable Firestore + FCM

  • Add the Firebase Web SDK in OutSystems using JavaScript (via an External Library or JS block)

  • Use Firestore to store messages and listen for updates (real-time chat works)

  • Create firebase-messaging-sw.js at the app root (required for web notifications)

  • Ask notification permission in a JS block and generate the FCM token

  • Store the token in an OutSystems entity mapped to the logged-in user

  • Trigger notifications from Firebase Cloud Functions or your OutSystems server REST API (never from client JS)

  • Run the app over HTTPS

2024-10-05 13-30-20
Huy Hoang The

It's correct! Very detail.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.