إشعار النظام Push Notification
الإشعار الذي يظهر أعلى الشاشة من تطبيق ما، حتى لو كان التطبيق مغلقاً.
Notification API + Service Workerمتى تستخدمه
للأحداث المهمة والعاجلة: رسالة، أو طلب جاهز.
خطأ شائع
لا ترسل إشعارات تسويقية كل يوم؛ فالناس يعطّلونها.
إمكانية الوصول
Ask permission only after the user understands why, and let them choose categories.
اسمه في الكود
| HTML/CSS | Notification API + Service Worker |
|---|---|
| React | web-push |
| Jetpack Compose | NotificationCompat.Builder |
| SwiftUI | UNUserNotificationCenter |
برومبت جاهز لوكيل البرمجة
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 وأمثاله.