does it need internet connection to work? should the app be running or opened for a scheduled task to work?