showStartTrackingNotification method

Future<void> showStartTrackingNotification({
  1. String? notificationTitle,
  2. 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,
  );
}