Back to All

Does `gonative.onesignal.register()` return a promise?

I need to perform some tasks after the user has responded to the prompt triggered by gonative.onesignal.register().

I haven't seen in the documentation whether this method returns a promise or not. Can code be chained to gonative.onesignal.register() using .then?

Ideally I could do the following

gonative.onesignal.register().then(() => {
  gonative.onesignal.onesignalInfo().then((info) => {
      // do something with info

Where is the documentation on gonative.onesignal.register()? What does it return?

Thank you for your time.