foreground_service_tensorflow_bluetooth_serial 0.0.2 copy "foreground_service_tensorflow_bluetooth_serial: ^0.0.2" to clipboard
foreground_service_tensorflow_bluetooth_serial: ^0.0.2 copied to clipboard

Android ForegroundService for Flutter

ForegroundService for Flutter #

This plugin allows Flutter apps to launch a generic foreground service when the platform is Android. If the plugin is invoked on iOS, it will crash your app. In checked mode, we assert that the platform should be Android.

Use it by calling the start and stop methods.

Start service with:

ForegroundService.start(
  title: 'Title',
  text: 'Text',
  subText: 'Subtext',
  ticker: 'Ticker',
);

Stop service with:

ForegroundService.stop();

Requirements #

Add the Service to your AndroidManifest.xml:

<service android:name="com.pauldemarco.foregroundservice.ForegroundService" >
</service>

Getting Started #

For help getting started with Flutter, view our online documentation.

For help on editing plugin code, view the documentation.

0
likes
15
pub points
0%
popularity

Publisher

unverified uploader

Android ForegroundService for Flutter

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, platform

More

Packages that depend on foreground_service_tensorflow_bluetooth_serial