--- title: "クライアントの登録" url: https://docs.catalyst.zoho.com/ja/sdk/web/v4/cloud-scale/push-notifications/register-client/ description: "このWeb SDKスクリプトを使用すると、CatalystのWebアプリケーションからプッシュ通知を受信するクライアントデバイスを登録できます。" last_updated: 2026-03-30T08:10:30Z service: Cloud Scale type: general related_links: - name: "Push Notifications" url: /ja/cloud-scale/help/push-notifications/introduction - name: "Push Notification - API" url: /ja/api/code-reference/cloud-scale/push-notifications/web/send-web-push-notifications/#SendWebPushNotifications --- # Webプッシュ通知を受信するクライアントの登録 `enableNotification()` メソッドは、Webアプリケーションから[プッシュ通知](https://docs.catalyst.zoho.com/ja/cloud-scale/help/push-notifications/introduction/)を受信するクライアントを登録します。以下のコードスニペットで使用されている `notification` リファレンスは、先に作成した[コンポーネントインスタンス](https://docs.catalyst.zoho.com/ja/sdk/web/v4/cloud-scale/push-notifications/get-component-instance)です。 `enableNotification()` メソッドはPromiseを返し、オブジェクトに解決されます。Promiseの解決後、`messagehandler` を通じて通知メッセージを処理できます。 ```javascript //クライアントを登録する var notification = catalyst.notification; notification.enableNotification().then((response) => { //メッセージ受信時のハンドラーを作成する catalyst.notification.messageHandler = (msg) => { //メッセージ生成時に実行するアクション } }); ``` その後、[Catalystコンソール](https://docs.catalyst.zoho.com/ja/cloud-scale/help/push-notifications/web)から、または[このAPI](https://docs.catalyst.zoho.com/ja/api/code-reference/cloud-scale/push-notifications/web/send-web-push-notifications/#SendWebPushNotifications)を通じて、登録されたクライアントにプッシュ通知を送信できます。