Add code for the SharedPreferences in determining which alerts to fetch.