kate Posted February 6, 2017 Share Posted February 6, 2017 Hi, I am developing a phaser game and I would like to show a frame with a background when it is executed from the browser in PC or mobile, however in the native apps I want that it will be full screen. I have been doing research and I found mobile-detect.js, a js library who gives information about the platform and if it is being executed in browser. But the problem is that in the mobile apps the game is executed in a webview with chromium. I have thought communicate Android MainActivity or iOS ViewController with the javascript to advice if we are in the native app. How could I do this? Thanks. Link to comment Share on other sites More sharing options...
squilibob Posted February 6, 2017 Share Posted February 6, 2017 you can use game.device to check for these things within Phaser. You could use combine any of the following game.device.android == true game.device.iOS == true game.device.chrome == true game.device.desktop == true Link to comment Share on other sites More sharing options...
Recommended Posts