React-native fetch data periodically and schedule local notifications

923 views Asked by At

I need to set notifications daily multiple times. The timings data (which is variable) is being fetched by an API. For this I probably need a background task that will periodically fetch the data for the week/day. That task should obviously run even when the app is closed/terminated because rarely an app is in the foreground/background. But all the libraries/packages (e.g expo's TaskManager/BackgroundFetch, react-native-background-fetch, react-native-background-task etc) I have searched have some limitations e.g. they wouldn't work when an app is terminated (swiped away from the recent apps list) or they wouldn't work for IOS when an app is terminated

I need an all-rounder library that would:

  1. execute background task even when an app is closed
  2. work for android + ios

It is such a common use case but I am unable to find any solution

0

There are 0 answers