enableNotifications static method

void enableNotifications()

Enables push notifications for the end user.

Implementation

static void enableNotifications() {
  OneSignal.User.pushSubscription.optIn();
}