[OneSignal Plugin] Notification Received event while app is not running

Forge Component
(13)
Published on 2019-10-18 by OutSystems R&D
13 votes
Published on 2019-10-18 by OutSystems R&D

How can we handle the Notification Received event if the app is not running on the device? 

We were able to successfully handle the events OnNotificationReceived and OnNotificationOpenened while the app is running provided by the "OneSignal" Block, however we need to handle them when the app is not running aswell.

I had imagined we could call a rest api for example when a push notification is received, how can we achieve this ? 

Hi Guys,

As Far as I know we can't handle this scenario directly in Outsystems. 

In the meantime I found out that Onesignal service has already one SDK that will handle that scenario as described here:
https://documentation.onesignal.com/docs/confirmed-deliveries#section-supported-sd-ks

However for android it requires at least OneSignal-Android-SDK version 3.12.0 and the one that OutSystems OneSignal Plugin is using is 3.11.4.

I changed the Outsystems plugin to use OneSignal-Android-SDK version 3.12.0 and It seems to be working. 

Will continue work on this subject and will try to post feedback here.

Meanwhile is there any official updates planed that address this?