How to send extra data(such as notification id) using oneSignal in spring boot? I have already send simple notification to android application but I am confused about sending extra data. Can anybody help me?
CodePudding user response:
You can send extra data as a map of data using the data parameter in their REST API. Refer to the following for more info:
https://documentation.onesignal.com/reference/create-notification#attachments
After sending the extra data, you can then get it using the relevant methods of OneSignal SDK.