The CometChat Flutter Push Notifications SDK provides a drop-in push notifications & VoIP calling integration that developers can use to quickly add a reliable & fully-featured notification experience to an existing or a new CometChat-powered app — FCM (Android) and APNs/PushKit (iOS) token registration, foreground presentation, notification taps, badge management, and full incoming call handling with a customizable Flutter call screen, all handled inside the plugin.
- Flutter 3.3.0 and later
- Dart 3.10.8 and later
- Android:
minSdkVersion 24,compileSdkVersion 36 - iOS 13.0 and later, Swift 5.0+
- APNs credentials from your Apple Developer account (iOS) and a Firebase project with
google-services.json(Android)
To set up the Flutter Push Notifications SDK and utilize CometChat for your notification functionality, you'll need to follow these steps:
- Registration: Go to the CometChat Dashboard and sign up for an account.
- After registering, log into your CometChat account and create a new app. Once created, CometChat will generate an Auth Key and App ID for you. Keep these credentials secure as you'll need them later.
- In the dashboard, enable Push Notifications v2, add your APNs and/or FCM credentials, and note the Provider ID.
- Check the Key Concepts to understand the basic components of CometChat.
- Refer to the Push Notifications documentation to integrate the SDK into your Flutter app.
Add the SDK to your pubspec.yaml:
dependencies:
cometchat_push_notifications: ^1.0.1Then fetch the package:
flutter pub get
Important: the plugin also requires the CometChat Chat SDK, which pub resolves for you:
Package Minimum version cometchat_sdk5.0.6 On iOS, enable Push Notifications and Background Modes (Remote notifications, Voice over IP) in Xcode capabilities. On Android, add your
google-services.jsontoandroid/app/.
For issues running the project or integrating with our SDKs, consult our documentation or create a support ticket or seek real-time support via the CometChat Dashboard.
