Restart scheduler when restarting the app