notification property
(Android only) Configure the persistent foreground notification.
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"
)
))
Implementation
Notification? notification;