Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

React Native Background Download

$
0
0

I am about to build an app which locally stores multiple MySqlite *.db files. These are used to populate the app with data.

The app should regularly check if there is a newer version for one of these files and, if so, download it and replace the old version of the file.This update process should happen in the background, while the app is inactive or even closed.

I have seen several plugins, which can be used to execute tasks in the Background (like https://www.npmjs.com/package/react-native-background-task). This could be used to check for updates regularly, but the time limit of 30s on iOS will probably not be enough to download the *.db file. Also, the plugin forces a minimum Android API Version of 21.

My question is: Is it possible to poll for updates in the background AND download them, replacing old files?


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>