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

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

Open
ik2wxx opened this issue Apr 22, 2024 · 1 comment
Open

Comments

@ik2wxx
Copy link

ik2wxx commented Apr 22, 2024

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
Copy link

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!

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

2 participants