How to fetch custom data from RawPayLoad Onesignal Plugin Notification

How to fetch custom data from RawPayLoad Onesignal Plugin Notification

  


Hi,

I am using OneSignl Plugin & Want to fetch some Additional Data from Notification Server that comes in Key-Value Pair.I am using OneSignalOnNotificationOpened Action & trying to redirect things there.

I also got the log in NotificationOpenedResult.Notification.Payload.RawPayload, And notice the Additional Data is coming under the custom key in JSON String, How could I get the key-value from it.

Thanks,

Assif 



Solution

Hi Assif,


In order to get more attention in the forum, please create the post inside the respective plugin:

This way, respective development team will be notified.


Please delete both posts, if you create a new inside the plugin:

https://www.outsystems.com/forums/discussion/38045/how-to-fetch-the-additional-data-from-onesignal/

https://www.outsystems.com/forums/discussion/38098/how-to-fetch-custom-data-from-rawpayload-onesignal-plugin-notification/


Regarding your question:

You can use the Json deserialize to map the text to one structure:


You also have a sample that i just uploaded.

Hope it helps you,

Best regards,

Solution