The Western Australian government has launched a new app to alert residents of fire, floods and other emergencies near their home.