هل تعلم؟dyk.si

إشعار النظام Push Notification

الإشعار الذي يظهر أعلى الشاشة من تطبيق ما، حتى لو كان التطبيق مغلقاً.

Notification API + Service Worker

متى تستخدمه

للأحداث المهمة والعاجلة: رسالة، أو طلب جاهز.

خطأ شائع

لا ترسل إشعارات تسويقية كل يوم؛ فالناس يعطّلونها.

إمكانية الوصول

Ask permission only after the user understands why, and let them choose categories.

اسمه في الكود

HTML/CSSNotification API + Service Worker
Reactweb-push
Jetpack ComposeNotificationCompat.Builder
SwiftUIUNUserNotificationCenter

برومبت جاهز لوكيل البرمجة

Add a Push Notification to this screen. What it is: A system alert that drops in at the top of the screen from an app, even when it’s closed. Implement with: Notification API + Service Worker (HTML/CSS). Accessibility: Ask permission only after the user understands why, and let them choose categories. When to use it: For timely events: a message, an order ready. Avoid: Don’t send daily marketing pushes; people turn them off. Reuse the project's existing design tokens, spacing and component conventions.

أو ركّب صفحة كاملة من هذا العنصر وغيره →

البرومبت بالإنجليزية لأنها الأدق مع Claude Code وأمثاله.

يُخلَط بينه وبين عناصر أخرى؟

⇄ Toast أم Alert أم Push Notification؟