52
Views
2
Comments
Solved
how do i get one signal player id
Question

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

2019-09-24 18-41-25
Jorge Martins
 
MVP
Solution

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!

UserImage.jpg
deddy effendi

Jorge Martins wrote:

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!

 hi jorge martins

it's work. thanks for your advice. 


regards


Deddy effendi

 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.