Added switch for local notifications. Tried to update the user default bug