MortimerCat
MortimerCat

Reputation: 874

manifest.json display property has invalid option of browser

The documentation seems to state that there are four options for the "display" property within a manifest.json: fullscreen, standalone, minimal-ui and browser

I decided upon 'browser' for one of my apps, but the message from Chrome (Version 76) says "Manifest 'display' property must be one of 'standalone', 'fullscreen' or 'minimal-ui'". The message also appears if I leave 'display' undefined.

Is 'browser' an obsolete option or has it just not made it into the latest Chrome version yet?

(I probably should mention that the message appears in Chrome DevTools>application>manifest).

Upvotes: 8

Views: 2452

Answers (2)

MortimerCat
MortimerCat

Reputation: 874

I finally got around to reporting it as a bug.

https://bugs.chromium.org/p/chromium/issues/detail?id=1330323

The immediate response was...

The behaviour is seen from M-85.This is is a non regression issue hence marking it as untriaged and requesting some one from dev team to look into the issue.

Upvotes: 1

McKabue
McKabue

Reputation: 2232

Valid options for display are fullscreen, standalone, minimal-ui and browser according to https://developer.mozilla.org/en-US/docs/Web/Manifest/display.

In order to show the Add to Home Screen Prompt, display must be set to must be one of: fullscreen, standalone, or minimal-ui, see https://developers.google.com/web/fundamentals/app-install-banners/

browser display option is like leaving the field empty.

When you use standalone it looks like native app. When you use fullscreen there is no status bar etc. Probably you want to use standalone, because fullscreen has very specific use-case (e.g. gaming).

Upvotes: 1

Related Questions