Web App Manifest not parsed by Chrome Dev Tools -
i have manifest.json according mdn spec , while works correctly when browsing website mobile device (add homescreen popup shows up, theme color , icons load...etc) chrome dev tools unable parse it. same problem persists on lighthouse (chrome extension).
has seen similar issue? think json invalid copy-pasting web app validator marked correct, when inputting url giving parse error:
file isn't valid json: syntaxerror: unexpected token in json @ position 0
it bom character issue in manifest.json
file.
if have notepad++ on machine, try open file, click menu "encoding" -> "encode in utf8 without bom" , save file.
if don't have notepad++, search google "remove bom character" favorite ide/editor.
Comments
Post a Comment