In fact, there is not enough way for this. but we can mark mauron85 as a way that is better than others on Android, but it also does not work on iOS . for example, if the application was killed by the user, the task will not work, or there will be no control over the number of completed tasks, the task starts every time the device changes its position.
other components, such as act-native-background-fetch and Reaction-native-background-task, have a time limit for the task (the task is repeated every 15 minutes, and there is no way to reduce this period of time), and they just work on Android ,
it would be great if Facebook reacted natively with some practical solution to this problem.
source share