Onesignal - redirects


#1

Hi everybody
I use OneSignal for push notifications.
I need to do async the notificationOpenedCallback function, because if the user open a notification, he need go to page X and if the user open the app, he need go to Homepage, but when I try to do it, all the time redirects to homepage. The function when I think do the magic is there:

window[“plugins”].OneSignal
.startInit(“XXXXXXXXXXX”, “XXXXXXXX”)
.handleNotificationOpened(notificationOpenedCallback)
.endInit();

Any idea?

Thank you very much!
Armando


#2

Nobody can help me? thans!


#3

I don’t understand what you are trying to do. Please explain.