Langsung ke konten
Skillpedia
API & server (backend)25k · #10102

nocobase-app-plugin-notification-web-push

Fungsinya

Skill ini menambahkan notifikasi Web Push ke aplikasi NocoBase 3, sehingga pengguna bisa menerima peringatan di browser dan perangkat mereka. Cocok untuk pengembang yang ingin peringatan push dengan langganan perangkat yang aman.

Kapan dipakai

  • ✓Saat Anda ingin pengguna menerima peringatan push browser dari aplikasi NocoBase.
  • ✓Saat pengguna perlu mengelola preferensi push perangkat mereka di halaman pengaturan.
  • ✓Saat Anda perlu mengonfigurasi HTTPS dan kunci VAPID untuk web push.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/nocobase/nocobase/blob/v3-develop/packages/plugins/app-plugin-notification-web-push/skills/nocobase-app-plugin-notification-web-push/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit →

Contoh permintaan ke AI

“Bisakah Anda mengatur notifikasi push browser di aplikasi NocoBase saya agar pengguna diberi peringatan saat sebuah pesanan disetujui?”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

AI mendaftarkan plugin Web Push, menambahkan konfigurasinya, dan menempatkan komponen preferensi pada halaman yang sudah masuk. Notifikasi lalu dikirim melalui layanan notifikasi yang ada ke perangkat atau pengguna yang dipilih.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.

Pertanyaan umum

Apakah ini memerlukan HTTPS?

Ya. Skill menyatakan bahwa aplikasi harus disajikan melalui HTTPS agar push berfungsi.

Bisakah aplikasi saya memeriksa aturan bisnis sebelum push dikirim?

Bisa. Aplikasi dapat menyediakan hook bernama yang dijalankan sebelum setiap pengiriman.

Apa yang terjadi saat keluar?

Skill menyatakan bahwa perangkat harus dibatalkan langganannya saat keluar.

Detail

Deskripsi asli dari pembuat

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

repo: nocobase/nocobase

Popularitas

Bintang GitHub
25k
Peringkat
#10102
Lisensi
—
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa