Do we really need this logic? Especially the vibrate function is only used after app launched.