I am currently using a deviceMotion listener in my expo app. I would like to keep the listener running in the background, even if the app is closed (assuming the user has allowed this option). Would the best way to go about this be to register a separate task that begins when the Appstate has changed to “background”? Or would it be possible to keep the listener I am already using in the active app from shutting down?
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.