admin管理员组

文章数量:1389783

In my application I am using foreground service which listens for some native events and emits them to some JS function to do some work. The function takes data from redux and works with it. The problem starts, when I'm restarting the phone or updating the app. I restart my foreground service via boot-completed action package-changed actions, but I don't open the application again. I want to continue listening to events and act accordingly but Redux is not loaded because the app wasn't open yet. Is there some work around this? I don't want to open the app for rehydration to start, I want it to happen behind the scenes without user interaction.

本文标签: react nativeRedux rehydration is not happening after phone restartStack Overflow