Templates Plugins Courses

Access OneSignal UserID


#1

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?


#2

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();


#3

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


#4

Hi Mike,

Thanks for your advice!

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

Kind regards,
Andrei


#5

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