Alarm application with support of shared state