badaix / snapweb

Web interface for Snapcast

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when resuming Snapweb PWA on iPhone

FredVDB opened this issue · comments

I have added the link to the Snapweb page to my iPhone start screen. This way, it gets its own icon, so I don't have to open a browser and navigate to the Snapweb page manually.

However, when unlocking my iPhone and reopening the Snapweb app, I get this message and I have to close the app and reopen it. Is there a way to detect this and reconnect to the Snapserver ?

error snapweb iphone

As a temporary workaround I have added an event listener for the visibilitychange event

document.addEventListener('visibilitychange', handleVisibilityChange, false);

When the page is shown again, I reinitialize the snapcontrol variable.

I'm wondering if audio playback is working on your iPhone?

Hi,

the snapwebclient is created successfully on iPhone (IOS 14.0.1), but no audio nor error message

Regards,
Frederik

This should be fixed with #23. Can you please check?

Hello, tested it and works as expected now.

Thx