Hi,
There is an error in the cocos2d-js
library file that happens on mobile devices. It that happens immediately when cocos2d-js-min.js
is downloaded and is running (when page is loaded but before the game loading is complete).
Error:
Uncaught (in promise) TypeError: fullscreen error
Happens only on mobile or mobile chrome emulator. I tested with iPhone xs Safari and Chrome, you get stuck in loading screen because of this JavaScript error.
This error is not in your project code, but straight in the cocos2d library JavaScript file.
Way to reproduce:
- Create a project with CC 2.1.0
- Build the game
- Run the built game in a mobile device browser or chrome mobile emulator
I found many similar issue posts from the Chinese forums:
- https://forum.cocos.com/t/2-05build-cuncaught-in-promise-typeerror-fullscreen-error/71659
- https://forum.cocos.com/t/web-fullscreen-error/70691
- https://forum.cocos.com/t/chrome71-cocoscreator1-93-js/70996
Are you already looking into this issue? Since now you cannot run a built game with 2.1.0 on a mobile device at all.