channelName property

String? channelName
getter/setter pair

Name of the notification channel. (Android Only)

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

CoffeeBackgroundGeolocation.init(Config(
  notification: Notification(
    channelName: "Location Tracker"
  )
));

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

Implementation

String? channelName;