bp2008 / ui3

A powerful, modern HTML5 web interface for Blue Iris.
GNU Lesser General Public License v3.0
120 stars 18 forks source link

Chrome missing "Install App" option #161

Open DeFlanko opened 8 months ago

DeFlanko commented 8 months ago

I see that UI3.htm is referencing the ui3manifest which points back to applets/manifest.json

<link rel="manifest" id="ui3manifest">
document.getElementById("ui3manifest").href = 'applet/manifest.json?v=' + combined_version + local_bi_session_arg_always;

but I never see the option to "install app":

image

I would love to see this as a feature so i can close out this pinned tab and ultimately save resources

bp2008 commented 8 months ago

Hi. Chrome will only offer the ability to install UI3 as a progressive web app if is hosted in a "secure context" (HTTPS). Blue Iris doesn't support HTTPS natively, so typically this is achieved with a reverse proxy server. I have created a reverse proxy server myself which you are free to try (guide here), or you can use pretty much any other HTTPS reverse proxy server if you already have a favorite.

It may be possible to do it without HTTPS if you whitelist the origin using this: chrome://flags/#unsafely-treat-insecure-origin-as-secure

DeFlanko commented 8 months ago

Thanks for the response BP!

On Sat, Oct 14, 2023, 12:13 PM bp2008 @.***> wrote:

Hi. Chrome will only offer the ability to install UI3 as a progressive web app if is hosted in a "secure context" (HTTPS). Blue Iris doesn't support HTTPS natively, so typically this is achieved with a reverse proxy server or change your browser configuration. I have created a reverse proxy server myself which you are free to try (guide here https://ipcamtalk.com/threads/webproxy-gui-based-alternative-to-stunnel.72203/), or you can use pretty much any other HTTPS reverse proxy server if you already have a favorite.

It may be possible to do it without HTTPS if you whitelist the origin using this: chrome://flags/#unsafely-treat-insecure-origin-as-secure

— Reply to this email directly, view it on GitHub https://github.com/bp2008/ui3/issues/161#issuecomment-1763141739, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABH52MJXAZFGYDEBDFZZU3DX7LP5TAVCNFSM6AAAAAA6AK2CTCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRTGE2DCNZTHE . You are receiving this because you authored the thread.Message ID: @.***>

DeFlanko commented 8 months ago

Do you happen to know if the BI team is going to have an option at some point to allow to use our own SSL certs? My router can generate via ACME.

bp2008 commented 8 months ago

I have no idea. If it ever becomes natively supported, I expect it will be primitive compared to a typical reverse proxy server. E.g. requiring you to host the TLS-supporting endpoint on a separate port with no certificate automation, outdated encryption algorithms, etc.