hello..
i create android using outsystems, i use one signal for push notification. i want to get device id / player id in one signal. i already tried in forum : https://www.outsystems.com/forums/discussion/25404/how-to-get-player-id-of-device/
but i get empty value of player id when i running it into my device, already tried in one signal documentation : https://documentation.onesignal.com/docs/sdk-reference#section-get-permission-subscription-state
this is my java script when i follow in forum:
this is my java script when i follow in one signal doc :
when i debug :
i always get empty player id. how do i solve it ?
regards
Deddy Effendi
Hi Deddy Effendi,
Regardless of which example you use, given that you are using async callbacks, you will always need to include the $resolve(); instruction in your Javascript immediately after you assign your output parameters (and it is actually on the forum topic you linked to).
Please try it and let us know if it solved your issue!
Jorge Martins wrote:
hi jorge martins
it's work. thanks for your advice.
Deddy effendi