Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PushRegistration

AeroGear UPS registration SDK

Usage: // Initialize SDK first app.init(config); let registration = new PushRegistration(); registration.register("myAppleOrFirebaseToken");

Hierarchy

  • PushRegistration

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Static API_PATH

API_PATH: string = "rest/registry/device"

Static TYPE

TYPE: string = "push"

Methods

getConfig

  • getConfig(): ServiceConfiguration | undefined
  • Return the config used for the push service

    Returns ServiceConfiguration | undefined

hasConfig

  • hasConfig(): boolean

register

  • register(deviceToken: string, alias?: string, categories?: string[]): Promise<void>
  • Register deviceToken for Android or IOS platforms

    Parameters

    • deviceToken: string

      token that will be sent to Unified Push server

    • Default value alias: string = ""

      device alias used for registration

    • Default value categories: string[] = []

      array list of categories that device should be register to.

    Returns Promise<void>

Generated using TypeDoc