rstrouse / ESPSomfy-RTS

A controller for Somfy RTS shades and blinds
The Unlicense
429 stars 32 forks source link

Saving as IOS web app. Only a few lines of code. #326

Closed blaisebarrette closed 2 months ago

blaisebarrette commented 2 months ago

Describe you new feature you'd like

Hi all!

I love what you did! A breeze to setup. Worked first time!

I only have a little suggestion. When saving as a link on desktop of a IOS device. It opens a safari web page. With a few lines of code in the head of the page, when saved can become a web app.

A few lines of code that could make a big difference.

https://gist.github.com/tfausak/2222823

rstrouse commented 2 months ago

Unfortunately, that requires each icon be pre-composed at its display size. The icon sizes are too large to fit on the ESP 32 partition. I will have to look for another way. When I tried it without all the additional icons it simply did not load the socket. I'll need to do some research to find out why it does this.

blaisebarrette commented 2 months ago

Never mind the icons, although it would be nice but, really, the most important is this line: <meta name="apple-mobile-web-app-capable" content="yes"> That gets rid of all the Safari interface.

rstrouse commented 2 months ago

Yep I just figured that out. I also figured out that it doesn't digest svg so scaling that way is not an option. I am trying some compression to see what I can do for the icon. Right now apple doesn't like a transparent background.

blaisebarrette commented 2 months ago

This page seems like a good resource: https://dev.to/oskarlarsson/designing-native-like-progressive-web-apps-for-ios-510o

rstrouse commented 2 months ago

If you install the pre-release of v2.4.2 then the icons and the webapp settings have been applied.

blaisebarrette commented 2 months ago

Wow! Niiiiiice!

rstrouse commented 2 months ago

I am going to close this for now. If you have any other issues please submit a new issue.