4 ms·
Utterly false. Staying alive has nothing to do with React Native or Cordova or any particular framework. It's about implementing the native APIs that allow th
by christocracy 10y ago
Utterly false. Staying alive has nothing to do with React Native or Cordova or any particular framework. It's about implementing the native APIs that allow that behaviour.
I'm the author of a couple of modules that allow your RN app to operate in the background:
https://github.com/transistorsoft/react-native-background-fetch https://github.com/transistorsoft/react-native-background-fe...
https://github.com/transistorsoft/react-native-background-geolocation https://github.com/transistorsoft/react-native-background-ge...
Both of these modules were ported from Cordova and have since been ported to NativeScript.
- ziziyO 10y agoThank you for linking those modules. I'm in the early stages of an app that will benefit from that functionality and admittedly my knowledge is based off of the first google result of a search for "react native background worker/task" (http://stackoverflow.com/questions/35376690/how-can-i-run-background-tasks-in-react-native http://stackoverflow.com/questions/35376690/how-can-i-run-ba...). Which of course makes me an expert on the subject in this day and age.