react-native-static-server
react-native-static-server copied to clipboard
Server is killed on iOS seemingly randomly and inconsistently
Hi -- I'm using this project in a production application and observing a bizarre behavior where the server seems to randomly get killed by iOS. It's incredibly inconsistent (sometimes on first load, sometimes after app is backgrounded for a while, sometimes in the foreground) and I've been able to go many hours in a session (foreground, background, etc.) without this happening too.
Has anyone experienced anything similar or have any ideas on how to diagnose?
I've added a 500ms interval that pings the server and restarts it is it's down (this doesn't work). Maybe the OS is killing the interval as well? I've also added checks on app-to-foreground on server health and tried restarting, but those also don't seem to work either.
Thank you so much!
@raymondjacobson Did you ever find any workarounds or solutions to this problem?