notification property

Notification? notification
final

(Android only) The Android operating system requires a persistent notification when running a foreground service.

Example

BackgroundGeolocation.ready(Config(
  notification: Notification(
    title: "The Title",
    text: "The Text"
  )
))
.
.
.
// To update the notification in real-time, use #setConfig
// You need only provide *changed* parameters --  initially configured
// parameters will remain unchanged.
BackgroundGeolocation.setConfig(Config(
  notification: Notification(
    title: "The New Title"
  )
))

Custom Notification Layouts

Use the Notification.layout option to provide the name of your own Android Layout XML File. See Android Custom Notification Layout for setup instructions.

Implementation

final Notification? notification;