Seamlessly update your app based on the user's battery state.