Hello,
I am building an app that will use setTimeout,
the app will run in the background and I am using setTimeout in the background to do some download of data, etc.
my question is,
does setTimeout have a limit to the number of seconds you can pass in?
I will have a setTimeout that will get fired in one day so that means I will have to take 84,600 (seconds in a day) and times this by 1000 for the correct time to work in the setTimeout... so is setTimeout(downloadData, 864000000) okay to use?
any other better method of doing this? The app will stay running in the background, i just have it doing stuff at certain times when the user is not using the app.
thanks!