enrollPush

Updated:

Launches the Android or iOS 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.

Description

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. It returns the FCM token and nickname upon successful enrollment.

Signature

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

Usage

Enroll the device for push notifications with a nickname.

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

Parameters

nickname

Release Notes

Tecton
1.1.0

Platform Support

iOS
Android