strings property
Custom strings to render into <TextView />
elements of a custom notification layout.
ℹ️ See Android Custom Notification Layout for setup instructions.
You can declare your own custom <TextView />
elements and render data into them using the notification.strings
parameter.
<TextView
android:id="@+id/myCustomElement" // <-- myCustomElement
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="notificationTitle" />
You can provide data to your custom elements using the strings configuration parameter:
BackgroundGeolocation.ready(Config(
notification: Notification(
strings: {
"myCustomElement": "My Custom Element Text"
}
)
));
Implementation
Map<String, String>? strings;