Failed to execute 'requestFullscreen' on 'Element'

When I build and run the game I am getting following message in console window.

Failed to execute ‘requestFullscreen’ on ‘Element’: API can only be initiated by a user gesture.

This is the place where the issue is triggered in “main.js”

cc.view.enableAutoFullScreen(
                cc.sys.browserType !== cc.sys.BROWSER_TYPE_BAIDU &&
                cc.sys.browserType !== cc.sys.BROWSER_TYPE_WECHAT &&
                cc.sys.browserType !== cc.sys.BROWSER_TYPE_MOBILE_QQ
            );

I am using Cocos Creator v1.6.2

How do I fix this issue (I do want the game to go into full screen mode) ?

Let me ask our engineering team to review your question.

It should be a problem about browser compatibility. You can just change to cc.view.enableAutoFullScreen(false);

I am testing on Chrome browser Version 62.0.3202.94 .

Oh, in this case, you can not enter fullscreen manually. It’s browser’s limitation.