I am trying to run an API call each 5 minutes (If I understood the docs correctly, for Android by default the timer is set to minum 15 minutes), the problem is that I dont know how to set this interval, currently my task is getting run at random intervals of time. Sometimes 5, somtimes 2, sometimes 3. Is there a way to set a certain time interval?
I’m having the same issue… I’m trying to make a simple background call to console.log a message, but I cannot get it to actually fire on the interval (5 seconds). Sometimes it will happen right away, other times it’ll wait a few minutes.
I eventually got it to work, but I found that ejecting from expo was more of a headache than just creating a brand new project using React Native CLI and copy + pasting my old code into the new project. It still requires some debugging to get things working, but overall easier in my opinion.