Building42 / Telegraph

Secure Web Server for iOS, tvOS and macOS
MIT License
794 stars 128 forks source link

HTML content does not work after app gone background and then foreground #150

Open ik2wxx opened 6 months ago

ik2wxx commented 6 months ago

Hello all What happens to Telegraph when app goes in background and then returns in foreground? Will server be still alive? I've tried with some Adobe Animate generated html+js code, and after returning to the app, the html page become unresponsive. Just want to check if this can be a Telegraph issue, as I can't find any problem in Animate's code. Thank you

sainttttt commented 4 months ago

I've found for a short time the server can stay alive but otherwise it dies. The technique I've found to handle is this is to try and ping the server when you come back to the app and if it fails, restart the server. I also use websockets and so I try and connect to the websocket server and if it fails to connect I restart as well (because for some reason sometimes I can ping the http server on refresh but not the websocket server).

Hope this helps!