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.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.
tecton.actions.enrollPush(nickname: string): Promise<{ token: string; nickname: string }>;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);
});nickname