Hello, I am developing an app to install on Homey Pro.
After creating an action card, I generated a notification in the registerRunListener as follows:
const notificationAction = this.homey.flow.getActionCard('send_notification');
notificationAction.registerRunListener(async () => {
const alertMessage = await alertToken.getValue();
this.log(`notificationAction: message:`, alertMessage);
await this.homey.notifications.createNotification({
excerpt: alertMessage
});
return true;
});
I would like to replace this notification with a push notification.
Is there a way to create a push notification?