stream_video_push_notification 1.2.3 copy "stream_video_push_notification: ^1.2.3" to clipboard
stream_video_push_notification: ^1.2.3 copied to clipboard

Adds push notification support for Stream Video, a service for building video calls, audio rooms, and live-streaming applications.

example/lib/main.dart

// ignore_for_file: unused_local_variable

import 'package:stream_video/stream_video.dart';
import 'package:stream_video_push_notification/stream_video_push_notification.dart';

void main() {
  // Initialize StreamVideo with push notification support
  final client = StreamVideo(
    'your-api-key',
    user: User.regular(userId: 'user-id'),
    userToken: 'your-user-token',
    pushNotificationManagerProvider: StreamVideoPushNotificationManager.create(
      iosPushProvider: const StreamVideoPushProvider.apn(
        name: 'your-apn-provider-name',
      ),
      androidPushProvider: const StreamVideoPushProvider.firebase(
        name: 'your-firebase-provider-name',
      ),
    ),
  );
}