The alert system is dependent depends on several features:
The alerts option has to be enabled on the settings page
...
Set a number that will be used to send out the sms alerts on the sms settings page
With the sms SMS provider in place - a trigger has been written to check the contents of the message sent by the user, if the message_description contains the word “alert” then its it's saved as an alert else if unless it contains the word “off”then it means . If it contains "off", the user is unsubscribing from alerts else then its ; otherwise it's a normal message that is saved in the system for mapping.
.
Fields for the post variable when subscribing:
- Alert Alert (Required)
- Location (Required)
- Category (Optional)
- Distance (Optional) - default is 20 based on km around the location lat/Lonlon.
Fields for the post variable when unsubscibingunsubscribing:
- Off (Required)
Possible/Future iterations:
- Internalization - allow people to set their own keyword and give translations for them or give the keyword as “Alert” and “Off” then offer internalization capability
- Allow users to unsubscribe from alerts based on a specific location rather than just unsubscribing them from all alerts irrespective of location.
- Allow users to subscribe based on keywords - this is on a country level crowdmap e.g if you subscribe with keyword “beer” then all reports with this irrespective of the crowdmap are sent put as alerts to that user.