Git Product home page Git Product logo

Comments (17)

Casvt avatar Casvt commented on May 27, 2024 2

Requires adding a logo (favicon) first because that becomes the icon on your home screen.

from kapowarr.

Casvt avatar Casvt commented on May 27, 2024 2

Thanks @DaveAlton and @kleivadas for your help. I've added support for PWA. I tried it on my android phone via Chrome, and it worked very nice. I don't have an Apple device, so I can't test if the Apple HTML tags work, but I just copied exactly what I found online.

It was a bit more complicated to add than expected because of the base URL. The "start_url' and "src" for the icon require a URL, but the URL depends on the base URL. So I had to write some extra code that automatically edits the manifest.json file to change those keys appropriately when the base URL is changed or removed. I tested it and it should work just fine :)

Support for PWA will be included in the next release, which is expected to be in a few days.

from kapowarr.

DaveAlton avatar DaveAlton commented on May 27, 2024 1

Looks great!

from kapowarr.

Casuallynoted avatar Casuallynoted commented on May 27, 2024

Requires adding a logo (favicon) first because that becomes the icon on your home screen.

Maybe something like this?
Kapowarr

from kapowarr.

Casvt avatar Casvt commented on May 27, 2024

Looks awesome!! Maybe replace BOOM with KAPOWARR? If that fits? If it's too long, maybe put it in the white circle or something. You're obviously better at this than I am😁

from kapowarr.

Casuallynoted avatar Casuallynoted commented on May 27, 2024

Looks awesome!! Maybe replace BOOM with KAPOWARR? If that fits? If it's too long, maybe put it in the white circle or something. You're obviously better at this than I am😁

Hell yeah! On it :)

from kapowarr.

DaveAlton avatar DaveAlton commented on May 27, 2024

You could even leave it out entirely like the other arr appsimage

from kapowarr.

Casvt avatar Casvt commented on May 27, 2024

Oh yeah that's true I think that's an even better idea

from kapowarr.

Casuallynoted avatar Casuallynoted commented on May 27, 2024

Oh yeah that's true I think that's an even better idea

Sounds good, I'll do that!

from kapowarr.

Casuallynoted avatar Casuallynoted commented on May 27, 2024

Bit of extra cleanup. Maybe like this!

Kapowarr

from kapowarr.

Casvt avatar Casvt commented on May 27, 2024

Looks great! Can you send it as an SVG to [email protected]?

from kapowarr.

Casuallynoted avatar Casuallynoted commented on May 27, 2024

Looks great! Can you send it as an SVG to [email protected]?

Sent! :D

from kapowarr.

Casvt avatar Casvt commented on May 27, 2024

@DaveAlton It's not very clear to me what I have to do to achieve what you want. The link you gave doesn't work. When I open the web-ui in google on my phone, I can add it to my home screen just fine and open it.

I can't find any documentation on the html tags for this or anything. Seems like I have to include an html tag to say how I want to page to open (standalone, in the browser) but I can't find the actual name of the tag or any other related tag to PWA support.

Does anyone know any links where I can find what I need to achieve what you ask?

from kapowarr.

DaveAlton avatar DaveAlton commented on May 27, 2024

Unfortunately I don't know more. I'm not a web developer myself, and I couldn't seem to find any Apple documentation on how to open this.

On iOS, when you add a website to the Home Screen, it can do one of 2 things.

  1. It opens in Safari. This isn't ideal because it's just another tab open there.

  2. It opens the webpage like an app. This is great because users can use it like an app and you don't ever have a different tab open for each time you tapped the Home Screen icon.

Sonarr, Radarr, Prowlarr, and Readarr all do this. Have you incorporated the shared code from them? It may also save you some development time by using their shared code. I think each is a fork on Sonarr.

from kapowarr.

Casvt avatar Casvt commented on May 27, 2024

Yeah indeed the problem is that I can't find any documentation. But good idea to check out what Radarr and such have done.

from kapowarr.

DaveAlton avatar DaveAlton commented on May 27, 2024

from kapowarr.

kleivadas avatar kleivadas commented on May 27, 2024

hello when im developing react webapps, the code i see that is used is the following.

on index.html

    <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
    <!--
      manifest.json provides metadata used when your web app is installed on a
      user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
    -->
    <link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
    <!--
      Notice the use of %PUBLIC_URL% in the tags above.
      It will be replaced with the URL of the `public` folder during the build.
      Only files inside the `public` folder can be referenced from the HTML.

      Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
      work correctly both with client-side routing and a non-root public URL.
      Learn how to configure a non-root public URL by running `npm run build`.
    -->

and a manifest.json file

{
  "short_name": "short name of the app",
  "name": "name of the app",
  "icons": [
    {
      "src": "favicon.ico",
      "sizes": "64x64 32x32 24x24 16x16",
      "type": "image/x-icon"
    },
    {
      "src": "logo192.png",
      "type": "image/png",
      "sizes": "192x192"
    },
    {
      "src": "logo512.png",
      "type": "image/png",
      "sizes": "512x512"
    }
  ],
  "start_url": ".",
  "display": "standalone",
  "theme_color": "#000000",
  "background_color": "#ffffff"
}

and just put the icon in the public folder. (favicon.ico, logo192.png, logo512.png)

that should do the job.

from kapowarr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.