Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.

Frequency of triggering alarm with change is location data #212

Open
niccs opened this issue Mar 15, 2016 · 1 comment
Open

Frequency of triggering alarm with change is location data #212

niccs opened this issue Mar 15, 2016 · 1 comment

Comments

@niccs
Copy link
Member

niccs commented Mar 15, 2016

Do not send alert, if location is not changed.

@niccs niccs self-assigned this Mar 15, 2016
@niccs niccs changed the title Alert location update settings Frequency of triggering alarm with location changes Mar 15, 2016
@niccs niccs changed the title Frequency of triggering alarm with location changes Frequency of triggering alarm with change is location data Mar 15, 2016
@niccs
Copy link
Member Author

niccs commented Mar 16, 2016

@jmatsushita,

Existing flow:--
AlarmManager is scheduled to be fired every 5 mins or alert delay time which is set by the user in Alert setting screen.

There are two options:--

Option 1--

Location updates are done independent of distance moved and is requested every 1 min. We can request location updates adding minimum distance moved parameter also-- which means if there is a change in location coordinates by say 50 mt( in addition to 1 min settings) then only update the location.

So once there is a location change as explained above, then only we can trigger panic sms. It can be more than one sms per minute also, in case user travels more distance than 50 mt,

In this case no need of repeated alarm which is based on intervals(5 mins). and we can remove Alaram Manager and base the trigger code on loactionupdate reciever.

Option 2 --

Suppose user selects 5 mins. so sms is sent every 5 mins. and if location is not changed by say 50 mt even after 5 mins, the new SMS is not triggered.

In this case,
Both alarm manager and Location receiver will work together.

Let me know your view points on same.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant