[Firebase Mobile] How to handle notification when app is in background/closed

Forge Component
(19)
Published on 6 Jan by David Sousa
19 votes
Published on 6 Jan by David Sousa

i have a use case to store all firebase messages in local storage for later use. i can currrently do this if the app is in the foreground using the provided block and the newnotification event. however when the app is in the background or closed, the firebase events dont trigger. 

anyone know how do i process notifications if the app is in the background or closed?

Hi Adam,

In this case, you can use OneSignal https://www.outsystems.com/forge/component-overview/2119/onesignal-plugin

Do you think that solves your problem?


Regards.


Paulo Cação wrote:

Hi Adam,

In this case, you can use OneSignal https://www.outsystems.com/forge/component-overview/2119/onesignal-plugin

Do you think that solves your problem?


Regards.


ive never used onesignal so i dont know. i'd rather not have to setup a seperate service just to read notifications when firebase should be handling it. 

How does onesignal work with processing firebase notifications that are recieved when the app is in the background/ closed?