Notifications
Get instant alerts when device status changes.
Notification typesโ
| Type | Meaning | Example |
|---|---|---|
| ๐ด Offline | Device disconnected | "Living room fan went offline" |
| ๐ข Online | Device reconnected | "Bedroom LED is back online" |
| ๐ State Changed | State update | "Living room light turned on" |
Delivery channelsโ
Push (FCM)โ
Mobile push via Firebase โ works when the app is closed.
In-appโ
Dashboard bell icon and full notifications page in web + Flutter.
Developer setupโ
Add FIREBASE_PROJECT_ID and place the service account JSON at storage/app/firebase-service-account.json (see FIREBASE_CREDENTIALS in .env). Run php artisan tenants:migrate, and configure Firebase files in the Flutter app.
Pusher channel: tenant.{subdomain}.notifications
Event: device.notification.sent