I am currently working on a timer extension in Shoutem that requires the app to run in the background, even when the app is terminated. I am currently using react-native-background-fetch for the background feature and for the terminated state, I need to register the headless task in the root index.js file. How can I do that in the respective extension's index.js file as the extension's index.js file is meant to export the extension's methods or any features. Also, I am having an issue manually linking the background fetch package as I need to add some files from the package after it's installed into the Xcode project and add some additional lines of code in both native android and ios files. Is there any shoutem extension available that supports the background feature?
1.4m articles
1.4m replys
5 comments
57.0k users