OneSignal plugin: How to retrieve player id for anonymous user from mobile app?


How to get the OneSignal player id for anonymous users from the mobile app? I can get them from OneSignal Dashboard, but I would like to retrieve the player id from my mobile app so that I can send notification to specific id from the mobile app itself.


Anonymous user (public user) created feedback via the mobile app. The registered user (admin) will be notified of the feedback from the anonymous user and will make a remark on it. Once the remark has been entered by the registered user, that anonymous user will be notified of the remark (I want the remark to go to the correct anonymous user, which can be traced via player id). Since they are anonymous, they don't have the outsystems user id to begin with.

Solved it by referring to