You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Created app has wrong favicon "sizes" value in the manifest file, which results in console error. #3284
Go to the created app's manifest file in public folder.
The icons array has wrongly mentioned the favicon.ico size as 192x192 instead of 16x16 size of the included favicon file.
Run the app. Go to Dev Tools' Application section. Open Manifest.
Click Add to homescreen. This results in console error: Error while trying to use the following icon from the Manifest: http://localhost:3000/favicon.ico (Resource size is not correct - typo in the Manifest?) Site cannot be installed: icon downloaded from the manifest was empty or corrupted
Expected Behavior
Should have searched for 144x144 image, where it would fail if we fix the size now.
I see this warning but icon size is 64x64 how remove this warning?
@camux, in your app, go to public folder, right click on favicon.ico file and select Properties, then Details tab and check Dimensions value. Then open manifest.json file (which is in the same public folder) in a code editor and under "icons", change "sizes" value to whatever dimensions the favicon.ico file had. That should fix the console error.
Activity
Fix favicon sizes value in manifest
ryansully commentedon Oct 16, 2017
The included
favicon.icofile I found was 64x64 instead of 16x16, so I used that value in #3287.mohsinulhaq commentedon Oct 16, 2017
@ryansully yes, you are right, it's 64x64. My IDE wrongly showed it to be 16x16. My bad.
mohsinulhaq commentedon Oct 17, 2017
@ryansully have you signed the CLA here https://code.facebook.com/cla to get your PR approved?
ryansully commentedon Oct 17, 2017
That's odd, I've signed it and contributed before, should I sign again?
ryansully commentedon Oct 17, 2017
Actually, #3287 has the CLA Signed label:
#3287 (comment)
PR should be ready to go.
Fix favicon sizes value in manifest (#3287)
Fix favicon sizes value in manifest (react#3287)
camux commentedon Nov 8, 2018
I see this warning but icon size is 64x64 how remove this warning?
abhishekakade commentedon Nov 16, 2018
@camux, in your app, go to
publicfolder, right click onfavicon.icofile and selectProperties, thenDetailstab and checkDimensionsvalue. Then openmanifest.jsonfile (which is in the samepublicfolder) in a code editor and under"icons", change"sizes"value to whatever dimensions thefavicon.icofile had. That should fix the console error.Fix favicon sizes value in manifest (react#3287)