본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)25k · #10102

nocobase-app-plugin-notification-web-push

하는 일

이 스킬은 NocoBase 3 앱에 웹 푸시 알림을 추가해, 사용자가 브라우저와 기기에서 알림을 받을 수 있게 합니다. 안전한 기기 구독과 함께 푸시 알림을 원하는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓사용자가 NocoBase 앱에서 브라우저 푸시 알림을 받기를 원할 때.
  • ✓사용자가 설정 페이지에서 기기별 푸시 설정을 관리해야 할 때.
  • ✓웹 푸시를 위해 HTTPS와 VAPID 키를 설정해야 할 때.

스킬 링크

https://github.com/nocobase/nocobase/blob/v3-develop/packages/plugins/app-plugin-notification-web-push/skills/nocobase-app-plugin-notification-web-push/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/nocobase/nocobase/blob/v3-develop/packages/plugins/app-plugin-notification-web-push/skills/nocobase-app-plugin-notification-web-push/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“주문이 승인되면 사용자에게 알림이 가도록 제 NocoBase 앱에 브라우저 푸시 알림을 설정해 주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

AI는 Web Push 플러그인을 등록하고 설정을 추가하며, 로그인한 페이지에 설정 컴포넌트를 배치합니다. 그다음 기존 알림 서비스를 통해 선택된 기기나 사용자에게 알림을 보냅니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Web Push integration

Read this package's README before integration. Register its server plugin after authentication, authorization and notification, and its client factory for localized device preferences. Add pushConfig under push to application default configuration and configure notification.channels.webPush.type as web-push. Mount the exported PushPreferences on an authenticated preferences page and call unsubscribeDevice during sign-out. Provide HTTPS, persistent VAPID and secrets keys, and application-owned installation metadata using pushManifest where installation is needed.

Send title/body/url/dedupeKey with explicit device and user recipients using the existing notification service. URLs include the application's public base path. Business authorization and foreground takeover belong to the application; use the optional named beforeSend hook on every attempt and never put business state into the generic channel. A missing named hook refuses delivery.

The device API is fixed at /api/webPush; browser storage and logout use the framework defaults. defineWebPushPlugin({ title, icon }) accepts application branding, and the worker remains at <publicBasePath>/push-worker.js. Register named afterSubscribe hooks on the service for application initialization after a device is saved; do not mount aliases or customize browser protocols.

Subscriptions accept application language identifiers; untranslated test notifications fall back to English. Renewing an existing subscription preserves its enabled state. Device JSON bodies are strict: listing includes meta.total, PATCH returns the updated device, DELETE returns 204 (404 for missing or unowned devices), and test submission returns 202. Click URLs must be root-relative within the public base path. Message validation rejects the final serialized title/body/url/dedupeKey payload above 3993 UTF-8 bytes before queueing, reserving the aes128gcm encryption overhead within 4096 bytes.

자주 묻는 질문

HTTPS가 필요한가요?

네. 푸시가 작동하려면 앱을 HTTPS로 제공해야 한다고 스킬이 밝힙니다.

푸시를 보내기 전에 업무 규칙을 확인할 수 있나요?

네. 애플리케이션이 각 전송 전에 실행되는 이름이 있는 훅을 제공할 수 있습니다.

로그아웃할 때는 어떻게 되나요?

스킬은 로그아웃 중에 기기 구독을 해지하라고 말합니다.

상세 정보

작성자의 원본 설명

Integrate encrypted browser push subscriptions and the Web Push notification channel in a NocoBase 3 application.

repo: nocobase/nocobase

인기도

GitHub 스타
25k
순위
#10102
라이선스
—
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬