Custom filtering logic
This commit is contained in:
parent
00599d7b1e
commit
5226e4dd90
6 changed files with 136 additions and 12 deletions
|
|
@ -30,7 +30,6 @@ class _QuickActionsInitializerState extends State<QuickActionsInitializer> {
|
|||
case 'sos':
|
||||
try {
|
||||
await bg.BackgroundGeolocation.getCurrentPosition(samples: 1, persist: true, extras: {'alarm': 'sos'});
|
||||
await bg.BackgroundGeolocation.sync();
|
||||
} catch (error) {
|
||||
developer.log('Failed to send alert', error: error);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue