Skip to content

Legacy Supported Properties

Jason Pang edited this page Jun 1, 2017 · 7 revisions

Some things to support for future SDK releases.

Events

  • Everything listed here in Subscription Tracking Events, includes notificationPermissionChange
  • HTTP permission prompt events, including the popupWindowTimeout
  • Notify button notifyButtonButtonClick

Properties

  • OneSignal.config
  • OneSignal.config.dangerouslyResetUserSubscriptions
  • OneSignal.SERVICE_WORKER_PATH
  • OneSignal.SERVICE_WORKER_UPDATER_PATH

Methods

  • OneSignal.checkAndWipeUserSubscription()
  • OneSignal.showHttpPermissionRequest()
  • OneSignal.getSubscription()
  • OneSignal.registerForPushNotifications({autoAccept: true})
  •   if (OneSignal.subscriptionBell &&
          OneSignal.subscriptionBell.hide) {
        OneSignal.subscriptionBell.hide();
      }
      else if (OneSignal.notifyButton &&
               OneSignal.notifyButton.launcher) {
        OneSignal.notifyButton.launcher.hide();
      }
    

Misc

From https://gist.github.com/jasonpang/81b2bdbc5788dfcac322d9247b2c0e1a:

  • OneSignal.config.welcomeNotification
  • OneSignal.config
  • OneSignal.once('register')
  • OneSignal.subscriptionHelper.registerForW3CPush({})