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).

chrome dev tools unable parse manifest.json

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

Popular posts from this blog

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -