getmango / Mango

Mango is a self-hosted manga server and web reader
https://getmango.app
MIT License
1.69k stars 120 forks source link

[Feature Request] Add a manifest.json for better mobile experience #262

Closed cglatot closed 2 years ago

cglatot commented 2 years ago

Is your feature request related to a problem? Please describe. On my mobile, I add a shortcut to my hosted Mango site to my home screen. This lets me read manga using the Mango web reader, which I prefer to use. However, by default, shortcuts open up in a new tab in the default browser.

Describe the solution you'd like I'd like to request a manifest.json file added to the site root, with some additional settings to make the mobile shortcut experience better. For example, setting proper icons so that Android / iOS picks them up and it looks nicer.

But the main feature I'd like is to have the display being fullscreen - this one will make it so that Mango would act similar to an independent app, and open in its own instanced browser, without the browser buttons, URL bar etc. It makes the experience feel more app-like on mobiles.

Describe a small use-case for this feature request The above solution outline answers this as well, but it just gives a better app-like experience on mobiles when the site is added as a shortcut to a mobile's home screen. The site itself still acts the same, so it would only affect users who add the site as a shortcut to their mobile home.

Additional context You can see a very simple manifest.json that I use for my own site here: https://github.com/cglatot/pasta/blob/master/manifest.json

But here's a more detailed resource, as there are quite a lot of things you can do: https://web.dev/add-manifest/

mango-assistant[bot] commented 2 years ago

Hi there! The feature has been added in v0.26.0. Thanks for the feature request!