[Firebase Cloud Message Plugin] Server push solutions

Forge Component
(5)
Published on 2018-08-20 by Experts
5 votes
Published on 2018-08-20 by Experts

Hi, I need to implement something to push data from the server to a web page for a web application. Could Firebase be utilized for this?

Thanks
Dan

Daniel McMechan wrote:

Hi, I need to implement something to push data from the server to a web page for a web application. Could Firebase be utilized for this?

Thanks
Dan

Hi Daniel, sure, but I think you should use this one for web https://www.outsystems.com/forge/component-overview/2121/firebase-web. Also, check out this article https://www.outsystems.com/forums/discussion/25871/how-to-configure-the-firebase-plugin/


Roman wrote:

Daniel McMechan wrote:

Hi, I need to implement something to push data from the server to a web page for a web application. Could Firebase be utilized for this?

Thanks
Dan

Hi Daniel, sure, but I think you should use this one for web https://www.outsystems.com/forge/component-overview/2121/firebase-web. Also, check out this article https://www.outsystems.com/forums/discussion/25871/how-to-configure-the-firebase-plugin/


Thanks Roman.

Maybe I could ask your opinion on this. I need to create a web page and have it's data refreshed when something in the database changes that is on the page. The changes to the data are initiated in a number of ways. I think that polling the database from my page on an interval is inefficient. However, it could be done in a lightweight manner. I've also been looking at server push options, but Firebase seems like overkill for what I need to accomplish. Any opinions on the best way to go? As a note, I am using OutSystems, so hoping to find something easy to implement within OutSystems.

Cheers,


Daniel McMechan wrote:

Roman wrote:

Daniel McMechan wrote:

Hi, I need to implement something to push data from the server to a web page for a web application. Could Firebase be utilized for this?

Thanks
Dan

Hi Daniel, sure, but I think you should use this one for web https://www.outsystems.com/forge/component-overview/2121/firebase-web. Also, check out this article https://www.outsystems.com/forums/discussion/25871/how-to-configure-the-firebase-plugin/


Thanks Roman.

Maybe I could ask your opinion on this. I need to create a web page and have it's data refreshed when something in the database changes that is on the page. The changes to the data are initiated in a number of ways. I think that polling the database from my page on an interval is inefficient. However, it could be done in a lightweight manner. I've also been looking at server push options, but Firebase seems like overkill for what I need to accomplish. Any opinions on the best way to go? As a note, I am using OutSystems, so hoping to find something easy to implement within OutSystems.

Cheers,


Indeed, polling on an interval is inefficient. I think you can use Firebase, it's based on the websockets and is fast enough to fill your needs. Yes, it does offer much more than just notifications, but I believe it's absolutely fine to use a smaller piece of functionality.

As far as I know, Outsystems does not have any server push options out-of-the-box, however, firebase is something you can set up really fast. I know also a couple more plugins that might offer in-app-notifications (pushwoosh, onesignal), however for your case I would suggest firebase.  

May I ask what's your concern regarding using Firebase? 


Roman wrote:

Daniel McMechan wrote:

Roman wrote:

Daniel McMechan wrote:

Hi, I need to implement something to push data from the server to a web page for a web application. Could Firebase be utilized for this?

Thanks
Dan

Hi Daniel, sure, but I think you should use this one for web https://www.outsystems.com/forge/component-overview/2121/firebase-web. Also, check out this article https://www.outsystems.com/forums/discussion/25871/how-to-configure-the-firebase-plugin/


Thanks Roman.

Maybe I could ask your opinion on this. I need to create a web page and have it's data refreshed when something in the database changes that is on the page. The changes to the data are initiated in a number of ways. I think that polling the database from my page on an interval is inefficient. However, it could be done in a lightweight manner. I've also been looking at server push options, but Firebase seems like overkill for what I need to accomplish. Any opinions on the best way to go? As a note, I am using OutSystems, so hoping to find something easy to implement within OutSystems.

Cheers,


Indeed, polling on an interval is inefficient. I think you can use Firebase, it's based on the websockets and is fast enough to fill your needs. Yes, it does offer much more than just notifications, but I believe it's absolutely fine to use a smaller piece of functionality.

As far as I know, Outsystems does not have any server push options out-of-the-box, however, firebase is something you can set up really fast. I know also a couple more plugins that might offer in-app-notifications (pushwoosh, onesignal), however for your case I would suggest firebase.  

May I ask what's your concern regarding using Firebase? 


I guess my main concern is adding another dependency to my solution.