Back to All

New update for push notifications?

Hi, I had a working code for Android push notifications using JavaScript Bridge. I wonder if something has changed because it is not working more, could somebody help me?

I was using this:

gonative.onesignal.userPrivacyConsent.grant();

gonative.onesignal.register();

gonative.onesignal.onesignalInfo().then(function (info) {
var id = oneSignalInfo.oneSignalUserId;
});

//...My own function to register user id...