abort static method
Aborts/stops the ongoing call service and cancels the notification.
This should be called when the call ends to clean up the foreground service and remove the notification.
Implementation
static Future<void> abort() async {
if (kIsWeb || defaultTargetPlatform != TargetPlatform.android) {
return;
}
try {
await CometChatCallsPluginPlatform.instance
.nativeAbortOngoingCallService();
} catch (e) {
// Log error but don't throw
print('$_tag: Error aborting ongoing call service: $e');
}
}