notifications

Communication

Push Notifications

Push and local notifications belong to the application and Laravel layers; they are not part of the stable SPLive 2.0.0 public SDK.

Recommended architecture

text
Laravel API
  ├── stores notification records
  ├── sends FCM/APNs notifications
  └── exposes unread and history endpoints

Flutter application
  ├── requests notification permission
  ├── registers the device token
  ├── displays local notifications
  └── navigates to the room or profile

SPLive SDK
  └── handles Rust room events and LiveKit media

Realtime in-room notices

For notices visible only while a room is open, listen to sdk.roomEvents and handle event types such as announcements, invitations, gifts, moderation, and seat updates.

dart
sdk.roomEvents.listen((event) {
  if (event['type'] == 'AnnouncementCreated') {
    showRoomBanner(event['data']);
  }
});
Do not document Specular.notifications; that facade does not exist in the current package.