Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App restart when a device locks its screen #985

Open
ptc-mklaudiny opened this issue Feb 15, 2024 · 1 comment
Open

App restart when a device locks its screen #985

ptc-mklaudiny opened this issue Feb 15, 2024 · 1 comment

Comments

@ptc-mklaudiny
Copy link
Contributor

NodeMobile looses ability to listen its connections when the screen is locked. It emits an exception which is unhandled and this makes Node to shutdown. In turn, this calls exit() on parent process (swift app itself). The app crashes because the shutdown is not coordinated with Engine and while the Engine is being destroyed there is bad memory access abort.
Interestingly the app somewhat restarts itself after this ...

@ptc-mklaudiny
Copy link
Contributor Author

An attempt to handle the exceptions from NodeMobile gracefully has not been successful for far.
#976

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant