startForegroundService method

Future<bool> startForegroundService({
  1. required String pollingUrl,
  2. int? intervalMinutes,
  3. String? channelId,
})

Start a foreground service for continuous notification polling.

This creates a persistent notification and runs a service that is less likely to be killed by the system. Use this for more reliable notification delivery. Returns true if the service was started successfully.

Implementation

Future<bool> startForegroundService({
  required String pollingUrl,
  int? intervalMinutes,
  String? channelId,
}) {
  throw UnimplementedError(
    'startForegroundService() has not been implemented.',
  );
}