I’m using expo to trigger periodical notifications inside my app. What I want is that every one minute the app trigger a notification that query an endpoint on a backend to check for a certain condition.
The problem I’m having is that there is a undetermined time period that pass before the periodical notifications start working. Sometimes it’s a couple of hours, sometimes even more that an entire day, but once they start after the time period, they work.
I’m using Expo TaskManager indide my Main component componentDidMount method like this:
await TaskManager.isTaskRegisteredAsync(SET_ALERTS_TASK); await BackgroundFetch.registerTaskAsync(SET_ALERTS_TASK, {minimumInterval: 60, stopOnTerminate: false}) await BackgroundFetch.setMinimumIntervalAsync(60);
Could you tell us i’ve you’ve solved this issue?. Or what other ways you’ve seen of doing this kind of notifications(without push).