π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Schedule test notifications
laurenspriem7af59a1ecf0f
diff --git a/mobile/lib/ui/settings/debug/ml_debug_section_widget.dart b/mobile/lib/ui/settings/debug/ml_debug_section_widget.dartindex c9cea0f76f..e3ad74a585 100644--- a/mobile/lib/ui/settings/debug/ml_debug_section_widget.dart+++ b/mobile/lib/ui/settings/debug/ml_debug_section_widget.dart@@ -106,6 +106,81 @@ class _MLDebugSectionWidgetState extends State<MLDebugSectionWidget> {},),sectionOptionSpacing,+ MenuItemWidget(+ captionedTextWidget: const CaptionedTextWidget(+ title: "Schedule notification 10 seconds",+ ),+ pressedColor: getEnteColorScheme(context).fillFaint,+ trailingIcon: Icons.chevron_right_outlined,+ trailingIconIsMuted: true,+ onTap: () async {+ try {+ await NotificationService.instance.scheduleNotification(+ "test",+ "test",+ id: 10,+ dateTime: DateTime.now().add(+ const Duration(seconds: 10),+ ),+ );+ showShortToast(context, 'done');+ } catch (e, s) {+ logger.severe('schedule notification failed ', e, s);+ await showGenericErrorDialog(context: context, error: e);+ }+ },+ ),+ sectionOptionSpacing,+ MenuItemWidget(+ captionedTextWidget: const CaptionedTextWidget(+ title: "Schedule notification 1 hour",+ ),+ pressedColor: getEnteColorScheme(context).fillFaint,+ trailingIcon: Icons.chevron_right_outlined,+ trailingIconIsMuted: true,+ onTap: () async {+ try {+ await NotificationService.instance.scheduleNotification(+ "test",+ "test",+ id: 11,+ dateTime: DateTime.now().add(+ const Duration(hours: 1),+ ),+ );+ showShortToast(context, 'done');+ } catch (e, s) {+ logger.severe('schedule notification failed ', e, s);+ await showGenericErrorDialog(context: context, error: e);+ }+ },+ ),+ sectionOptionSpacing,+ MenuItemWidget(+ captionedTextWidget: const CaptionedTextWidget(+ title: "Schedule notification 12 hours",+ ),+ pressedColor: getEnteColorScheme(context).fillFaint,+ trailingIcon: Icons.chevron_right_outlined,+ trailingIconIsMuted: true,+ onTap: () async {+ try {+ await NotificationService.instance.scheduleNotification(+ "test",+ "test",+ id: 12,+ dateTime: DateTime.now().add(+ const Duration(hours: 12),+ ),+ );+ showShortToast(context, 'done');+ } catch (e, s) {+ logger.severe('schedule notification failed ', e, s);+ await showGenericErrorDialog(context: context, error: e);+ }+ },+ ),+ sectionOptionSpacing,MenuItemWidget(captionedTextWidget: FutureBuilder<IndexStatus>(future: getIndexStatus(),