From 220a9192a5dd95bc51ba7021e696607be68fe102 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 10 May 2025 13:28:51 -0700 Subject: [PATCH] Update alarm payload --- lib/quick_actions.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/quick_actions.dart b/lib/quick_actions.dart index b17760c..f8d3bb4 100644 --- a/lib/quick_actions.dart +++ b/lib/quick_actions.dart @@ -27,7 +27,7 @@ class _QuickActionsInitializerState extends State { bg.BackgroundGeolocation.stop(); case 'sos': try { - await bg.BackgroundGeolocation.getCurrentPosition(samples: 1, extras: {'sos': true}); + await bg.BackgroundGeolocation.getCurrentPosition(samples: 1, extras: {'alarm': 'sos'}); await bg.BackgroundGeolocation.sync(); } catch (error) { developer.log('Failed to send alert', error: error);