magic_notifications library
Classes
- ChannelPreference
- Channel-specific preferences for a notification type.
- DatabaseChannel
- Database channel for in-app notifications.
- DatabaseNotification
- Database notification model for in-app notifications.
- Notification
- Base class for notifications
- NotificationChannel
- Base class for notification channels
- NotificationManager
- Core notification manager.
- NotificationPoller
- Polls for notifications at regular intervals.
- NotificationPreference
- Model for user notification preferences.
- NotificationServiceProvider
- Service provider for notifications.
- Notify
- Notification facade.
- OneSignalDriver
- OneSignal push notification driver for mobile platforms (iOS/Android).
- PaginatedNotifications
- Paginated wrapper for database notifications.
- PushChannel
- Push notification channel using a configured driver (e.g., OneSignal).
- PushDriver
- Abstract driver for push notification services.
- PushMessage
- A push notification message with fluent builder pattern.
- PushNotificationEvent
- Event fired when a push notification is received or clicked.
- PushPromptDialog
- A dialog that prompts the user to enable push notifications.
- PushSubscription
- Represents a push notification subscription.
Enums
- PushPermissionState
- Push notification permission states.
Mixins
- Notifiable
- Mixin for entities that can receive notifications
Exceptions / Errors
- NotificationException
- Base exception for notification errors
- PushNotSupportedException
- Exception thrown when push notifications are not supported on the platform