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:
- execute background task even when an app is closed
- work for android + ios
It is such a common use case but I am unable to find any solution
question from:
https://stackoverflow.com/questions/65913365/react-native-fetch-data-periodically-and-schedule-local-notifications 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…