CometchatPushNotificationsWeb class

A web implementation of the CometchatPushNotificationsPlatform of the CometchatPushNotifications plugin.

Inheritance

Constructors

CometchatPushNotificationsWeb()
Constructs a CometchatPushNotificationsWeb

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelCallNotification(String callId) Future<bool>
Cancels an incoming call notification by call ID.
inherited
checkCallPermissions() Future<Map<String, bool>>
Returns the current state of OEM permissions that affect whether call notifications can show a full-screen UI on locked / background devices.
inherited
dismissIncomingCallActivity() Future<bool>
Dismisses the dedicated full-screen incoming-call activity (Android), e.g. when the caller cancels/ends the call before it is answered. No-op on platforms without a dedicated call activity.
inherited
getLaunchCallDetails() Future<Map<String, dynamic>?>
Returns the pending call details captured from the launch intent (if the app was launched by tapping an incoming call notification).
inherited
getPlatformVersion() Future<String?>
Returns a String containing the version of the platform.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openAutoStartSettings() Future<bool>
Opens the OEM-specific Autostart permission screen (Xiaomi, Oppo, Vivo, Huawei, Samsung). Falls back to the app details page on stock Android.
inherited
openBatteryOptimizationSettings() Future<bool>
Opens the battery optimization exemption request.
inherited
openFullScreenIntentSettings() Future<bool>
Opens Android 14+ full-screen intent permission screen.
inherited
openOverlaySettings() Future<bool>
Opens the "Display over other apps" permission screen.
inherited
setDeclineCallHandler(void handler(String sessionId)) → void
Registers a handler for silent decline broadcasts.
inherited
setIncomingCallLaunchHandler(void handler(Map<String, dynamic> details)) → void
Registers a handler for call notification taps that occur while the app is already running (e.g., tapping a call notification after putting the app in background).
inherited
showCallNotification({required String callId, required String callerName, required bool isVideo, String? callerAvatar}) Future<bool>
Shows a full-screen incoming call notification.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

registerWith(Registrar registrar) → void