enrollPush

Updated:
Supported Platforms:
Android
iOS

Launches the workflow to enroll the current device in push notifications.

enrollPush is only supported inside the Q2 mobile banking app. It is not available in the mobile browser or desktop browser.

enrollPush launches the workflow to enroll the current device in push notifications. The device will be registered in the Q2 system with the passed nickname.

Details

Type

tecton.actions.enrollPush(nickname: string); Promise<{token: string, nickname: string}>

Example

You will use this function to enroll a device in push notifications. If unsuccessful the promise will reject with an error mesage.

tecton.actions.enrollPush('myDevice').then((data) => {
  // use data.token to push messages using Firebase Cloud Messaging
})
.catch(error => {
  //If push notification enrollment failed
  console.error(error.message);
});

Arguments

Android
iOS

the nickname you would like to assign to the device

Release Notes

Initial Release