How to fetch custom data from RawPayLoad Onesignal Plugin Notification


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.




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:

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,