You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.
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 freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Do not send alert, if location is not changed.
The text was updated successfully, but these errors were encountered: