showStartTrackingNotification method
Future<void>
showStartTrackingNotification(
{ - String? notificationTitle,
- String? notificationContent,
})
Implementation
Future<void> showStartTrackingNotification(
{String? notificationTitle, String? notificationContent}) async {
const DarwinNotificationDetails iosNotificationDetails =
DarwinNotificationDetails(
presentAlert: true,
presentBadge: true,
presentSound: true,
);
const NotificationDetails notificationDetails = NotificationDetails(
iOS: iosNotificationDetails,
);
await _notificationsPlugin.show(
0,
notificationTitle ?? 'Step Tracking Started',
notificationContent ?? 'Your step tracking session has begun',
notificationDetails,
);
}