startBackgroundService method

Future<void> startBackgroundService()

Starts the background step counting service.

This method initiates the background service that continuously monitors and records step data even when the app is not in the foreground.

Throws PlatformException if the service cannot be started.

Implementation

Future<void> startBackgroundService() {
  return StepsCountPlatform.instance.startBackgroundService();
}