AndroidNotificationSettings constructor
- String notificationChannelName = 'Location tracking',
- String notificationTitle = 'Start Location Tracking',
- String notificationMsg = 'Track location in background',
- String notificationBigMsg = 'Background location is on to keep the app up-tp-date with your location. This is required for main features to work properly when the app is not running.',
- String notificationIcon = '',
- Color notificationIconColor = Colors.grey,
- VoidCallback? notificationTapCallback,
notificationTitle
Title of the notification. Only applies for android. Default is 'Start Location Tracking'.
notificationMsg
Message of notification. Only applies for android. Default is 'Track location in background'.
notificationBigMsg
Message to be displayed in the expanded content area of the notification. Only applies for android. Default is 'Background location is on to keep the app up-tp-date with your location. This is required for main features to work properly when the app is not running.'.
notificationIcon
Icon name for notification. Only applies for android. The icon should be in 'mipmap' Directory.
Default is app icon. Icon must comply to android rules to be displayed (transparent background and black/white shape)
notificationIconColor
Icon color for notification from notification drawer. Only applies for android. Default color is grey.
notificationTapCallback
callback for notification tap
Implementation
const AndroidNotificationSettings(
{this.notificationChannelName = 'Location tracking',
this.notificationTitle = 'Start Location Tracking',
this.notificationMsg = 'Track location in background',
this.notificationBigMsg =
'Background location is on to keep the app up-tp-date with your location. This is required for main features to work properly when the app is not running.',
this.notificationIcon = '',
this.notificationIconColor = Colors.grey,
this.notificationTapCallback});