[OneSignal Plugin] Accessing Parameters without deeplink destination

Forge Component
Published on 2019-12-05 by OutSystems R&D
13 votes
Published on 2019-12-05 by OutSystems R&D

Hi All,

I'm trying to retrieve some parameter that i added to the "Send Notification" Server Action side in the "OneSignalOnNotificationReceived" & "OneSignalOnNotificationOpened" client actions side.

I added Input Parameter with same name as the one i use while sending the Notification. I don't use the Deeplink property as it has nothing to do with the Layout actions (Received/ Opened actions).

When i run the debugging, i receive "0" in the client action, while i'm sending some value in the server action. Any idea what's wrong ?

Try traversing the structure if the incoming notification and check for the right key value pair in a loop of Parameters.

Notification.Payload.Deeplink.Parameters.Current.Key = "NotificationType"

That's what I did and works for me (it's far from ideal though)