CallBackgroundService class
Manages background service for keeping calls alive when app is killed.
Android: Call foreground notifications are owned exclusively by the native
OneCxiCallService. This class only stops orphaned flutter_background_service
instances from older SDK versions.
iOS: CallKit handles background calls; this service is not used.
Constructors
- CallBackgroundService()
-
factory
Properties
- autoStartOnBoot → bool
-
Whether boot auto-start was configured for
flutter_background_service.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
initialize(
{bool autoStartOnBoot = false}) → Future< void> -
Initialize the background service.
On Android, native
OneCxiCallServiceowns the foreground notification. -
isServiceRunning(
) → Future< bool> - Check if service is currently running
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
startService(
{required String callType, required String did, required String registeredNumber}) → Future< void> -
Start the background service when a call begins.
No-op on Android — native
OneCxiCallServiceowns the foreground notification. -
stopService(
) → Future< void> - Stop the background service when call ends. On Android, stops any orphan flutter_background_service from legacy builds.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
onStart(
ServiceInstance service) → void - Background service entry point (legacy; not started on Android anymore).