Update alarm payload
This commit is contained in:
parent
c5bcd9689a
commit
220a9192a5
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ class _QuickActionsInitializerState extends State<QuickActionsInitializer> {
|
||||||
bg.BackgroundGeolocation.stop();
|
bg.BackgroundGeolocation.stop();
|
||||||
case 'sos':
|
case 'sos':
|
||||||
try {
|
try {
|
||||||
await bg.BackgroundGeolocation.getCurrentPosition(samples: 1, extras: {'sos': true});
|
await bg.BackgroundGeolocation.getCurrentPosition(samples: 1, extras: {'alarm': 'sos'});
|
||||||
await bg.BackgroundGeolocation.sync();
|
await bg.BackgroundGeolocation.sync();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
developer.log('Failed to send alert', error: error);
|
developer.log('Failed to send alert', error: error);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue