channelName property

String? channelName
getter/setter pair

Configure the name of the plugin's notification-channel used to display the Config.foregroundService notification.

On Android O+, the plugin's foreground-service needs to create a "Notification Channel". The name of this channel can be seen in:

Settings->App & Notifications->Your App.

Defaults to your application's name from AndroidManifest.

\

Example

BackgroundGeolocation.ready(Config(
  notification: Notification(
    channelName: "Location Tracker"
  )
));

// or with #setConfig
BackgroundGeolocation.ready(Config(
  notification: Notification(
    channelName: "My new channel name"
  )
));

Implementation

String? channelName;