Hi,

I tried executing the installation steps, on http://realfavicongenerator.net. I uploaded 260 X 260 PNG favicon image, but html code that gets generated is as below,

HTML Code generated on http://realfavicongenerator.net is as under :-

This html code is incomplete. Because when I check the favicon for site using URL it shows me :-

Error:
"Android Chrome
The high resolution icon is absent. There is no icon for Android Chrome"

Comments

shruti.sheth created an issue. See original summary.

shruti.sheth’s picture

Issue summary: View changes
danjordan’s picture

I receive the same error when I use realfavicongenerator's Favicon checker.

The Web App Manifest is declared
Cannot find https://www.mysite.com.au/android-chrome-192x192.png
Cannot find https://www.mysite.com.au/android-chrome-512x512.png

The high resolution icon is absent

There is no icon for Android Chrome
ricksta’s picture

I'm also getting this error. I'm working with a site on the Pantheon hosting platform. I was wondering if that's the case for you also.
I know they don't use an .htaccess file.Have you made any progress on this?

pimok3000’s picture

I also get this:

Android Chrome

    The Web App Manifest is declared
    Cannot find https://my.website.com/android-chrome-192x192.png
    Cannot find https://my.website.com/android-chrome-512x512.png
    The high resolution icon is absent
    There is no icon for Android Chrome

But the two files are at place and are readable/executeable.
So this message is not true.
Even when i put in the relative path it won´t work:
in the site.webmanifest file the enrtries for both files are there:

{
    "name": "My Website",
    "short_name": "My Website",
    "icons": [
        {
            "src": "/android-chrome-192x192.png",
            "sizes": "192x192",
            "type": "image/png"
        },
        {
            "src": "/android-chrome-512x512.png",
            "sizes": "512x512",
            "type": "image/png"
        }
    ],
    "theme_color": "#cccccc",
    "background_color": "#cccccc",
    "display": "standalone"
}

The report at admin/reports/dblog stays silent.

miguelbraga’s picture

I'm having this issue too, any luck in correcting this so far?

waverate’s picture

Status: Active » Closed (works as designed)

The path in site.webmanifest generated by http://realfavicongenerator.net/ isn't correct. Edit the file to include the full path to the favicons.

{
    "name": "",
    "short_name": "",
    "icons": [
        {
            "src": "/sites/default/files/favicons/android-chrome-192x192.png",
            "sizes": "192x192",
            "type": "image/png"
        },
        {
            "src": "/sites/default/files/favicons/android-chrome-256x256.png",
            "sizes": "256x256",
            "type": "image/png"
        }
    ],
    "theme_color": "#ffffff",
    "background_color": "#ffffff",
    "display": "standalone"
}
waverate’s picture

Status: Closed (works as designed) » Needs work
StatusFileSize
new1.01 KB

Okay. @wiifm shamed me into fixing this correctly. It looks like http://realfavicongenerator.net/ is not generating JSON files for Android Chrome. They are now using a SITE.WEBMANIFEST instead.

JSON

        {
	"src": "\/android-chrome-144x144.png",
	"sizes": "144x144",
	"type": "image\/png",
	"density": "3.0"
        },

SITE.WEBMANIFEST

        {
            "src": "/android-chrome-192x192.png",
            "sizes": "192x192",
            "type": "image/png"
        },

Just in case users are still uploading the zip with a JSON file, I have left that rewrite in place and added an additional one for WEBMANIFEST files.

Attached is the patch for D8.

waverate’s picture

Issue tags: +Needs backport to D7
waverate’s picture

Status: Needs work » Needs review
StatusFileSize
new968 bytes

D7 patch attached.

  • wiifm committed bbda324 on 7.x-1.x authored by waverate
    Issue #2890685 by waverate, shruti.sheth, ricksta, torstenzenk,...

  • wiifm committed 4891867 on 8.x-1.x authored by waverate
    Issue #2890685 by waverate, shruti.sheth, ricksta, torstenzenk,...
wiifm’s picture

Status: Needs review » Fixed

Thanks for the patches. I tested this on simplytest.me, and it works a treat. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.