iOS multitasking lag

On my iPhone 15, running the latest version of iOS, I added the Gladys web app to my home screen.

Everything works, but if I leave the web app for a few minutes, when I reopen Gladys, I get pages like these:

The problem is that the data never arrives. I have to close the web app from the multitasking menu and reopen it.

Do you have any ideas?

Thanks

Hi Damien,

Thanks for the feedback and screenshots, that’s very helpful!

I looked into it and I think I found the cause: when iOS puts the web app in the background, it cuts its connection. Requests that were in progress at that moment (or sent right after returning to the app) then remain blocked indefinitely. Just a few blocked requests are enough for all subsequent ones to wait behind, hence the infinite loading until you close the app.

I opened a GitHub issue to track the subject: Gladys Plus: data never loads after resuming the iOS web app from background (requests hang until the app is killed) · Issue #3387 · GladysAssistant/Gladys · GitHub

In the meantime, the only workaround is to close and reopen the web app, sorry for the inconvenience!

Hi everyone!

This topic is now in development.

A PR has been opened to prevent Gladys Plus calls from getting stuck after a connection drop (the infinite spinner when returning to the iOS app):

Feel free to follow the PR, test (optional, especially for small requests), and share your feedback here if needed.

Hello,

The lag of the iOS web app after going to the background (pending Gladys Plus calls) has been fixed in Gladys Assistant 5.3.4.

The details are in the announcement: