Templates Plugins Courses

Access OneSignal UserID

Hi, I just got my native app up and running and a successful OneSignal message pushed. However, in order to know which users to send notifications to, I need to be able to access the User ID. Is there a way to do this through your wrapper?

Nevermind, I found it in the “Android JS Bridge” documentation. It’s just called something different than what I expected.

If anyone stumbles across this, it’s this:

Get OneSignal token
var token = android.getOneSignalRegisteredId();

1 Like

could you please provide me more details on this issue? thanks

Hi Mike,

Thanks for your advice!

Have you maybe found the way to do the same in iOS application?

Kind regards,

1 Like

It’s the same for iOS, the documentation area is just called “Javascript Bridge” under the “Run the app” section.