Phonegap and Android FullScreen issue

Discussion and feedback on Construct 2

Post » Thu Feb 13, 2014 3:09 pm

Hi!

I was using C2 since a while and yesterday acquired a personal licence (yayy :D)

im working on a basic game that needs to be integrated with facebook, so i use phonegap/cordova plugins and integrate with C2, everithings works fine BUT the game doens't show in fullscreen:





Things i tried:
x) see if the default cordova file works in full screen: yes, the default cordova seems ok and the ondevice events and other things works

x) test the facebook plugins with the default cordova project: yes, it's works

x) export from C2 as phonegap project, edit the html to change phonegap.js to cordova.js

x) import the files from C2 exported as Phonegap with Windows Size W:720,H:1280 and Fullscreen method: Letterbox Scale, tried to change the unbounding scrolled to yes in all the layouts, edit the html tring to manually set W,H on canvas div, etc. but the result is not showing in full screen the game.

x) tried editing res/xml/config.xml adding <preference name="Fullscreen" value="true" />, with no luck

x) tried edditin Activity.java adding getWindow().setFlags(
               WindowManager.LayoutParams.FLAG_FULLSCREEN,
               WindowManager.LayoutParams.FLAG_FULLSCREEN |
               WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN) , with no luck

After almos 12 hours of looking arounf and testing i decided to post here, i read there isn't any support for phonegap excluding phonegapbuild but i need to build manually becouse i need to use the facebook plugins from cordova.nanomo2014-02-13 15:17:17
B
3
Posts: 3
Reputation: 181

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 6 guests