--- title: "Registrar un cliente" url: https://docs.catalyst.zoho.com/es/sdk/web/v4/cloud-scale/push-notifications/register-client/ description: "Este script del Web SDK te permite registrar un dispositivo cliente para recibir push notifications de tu aplicación web de Catalyst." last_updated: 2026-03-30T08:10:30Z service: Cloud Scale type: general related_links: - name: "Push Notifications" url: /es/cloud-scale/help/push-notifications/introduction - name: "Push Notification - API" url: /es/api/code-reference/cloud-scale/push-notifications/web/send-web-push-notifications/#SendWebPushNotifications --- # Registrar un cliente para recibir Web Push Notifications El método `enableNotification()` registra un cliente para recibir [push notifications](https://docs.catalyst.zoho.com/es/cloud-scale/help/push-notifications/introduction/) de tu aplicación web. La referencia `notification` utilizada en el fragmento de código a continuación es la [instancia del componente](https://docs.catalyst.zoho.com/es/sdk/web/v4/cloud-scale/push-notifications/get-component-instance) creada anteriormente. El método `enableNotification()` devuelve una promesa que se resuelve a un objeto. Después de resolver la promesa, puedes manejar el mensaje de notificación a través del `messagehandler`. ```javascript //Registrar el cliente var notification = catalyst.notification; notification.enableNotification().then((response) => { //Crear un manejador para el mensaje cuando se reciba catalyst.notification.messageHandler = (msg) => { //Acción a realizar cuando se genera el mensaje } }); ``` Luego puedes enviar push notifications al cliente registrado ya sea desde la [consola de Catalyst](https://docs.catalyst.zoho.com/es/cloud-scale/help/push-notifications/web), o a través de [esta API](https://docs.catalyst.zoho.com/es/api/code-reference/cloud-scale/push-notifications/web/send-web-push-notifications/#SendWebPushNotifications).