IOS Cordova ignoring preferences

Ideas and discussion about publishing and distributing your games

Post » Tue Dec 30, 2014 6:43 am

In intel xdk fix screenorientation bug.

cordova plugin add net.yoik.cordova.plugins.screenorientation

in index.html please, add in <head> section

<script>
screen.lockOrientation('portrait');
</script>

or

<script>
screen.lockOrientation('landscape');
</script>
B
15
S
3
G
4
Posts: 27
Reputation: 2,819

Post » Thu Jan 15, 2015 7:26 pm

I just has this exact problem, I'm going to try the net.yoik.cordova.plugins.screenorientation plugin

Never had this problem on Ejecta! :roll:

EDIT: OK, cranberry's screen orientation lock works fine. Nice.
See here: plugin-cordova-related-c2-plugins-crosswalk_t109586
B
24
S
7
G
1
Posts: 186
Reputation: 2,716

Post » Mon Jan 19, 2015 6:59 pm

@IanIppolito did the other plugin work for you?
B
14
S
2
Posts: 44
Reputation: 777

Post » Thu Feb 26, 2015 11:24 pm

aquinn wrote:I just has this exact problem, I'm going to try the net.yoik.cordova.plugins.screenorientation plugin

Never had this problem on Ejecta! :roll:

EDIT: OK, cranberry's screen orientation lock works fine. Nice.
See here: plugin-cordova-related-c2-plugins-crosswalk_t109586


The @cranberrygame plugin seems broken now. It disables all touch events in my app on iOS. Is it still working for you?
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Fri Feb 27, 2015 1:39 pm

@codah It was working Mon 23rd, that's the last time I did an ios build... That's before the Intel XDK was updated
B
24
S
7
G
1
Posts: 186
Reputation: 2,716

Post » Fri Feb 27, 2015 10:03 pm

I tested before and after the XDK update... same result :/ weird
B
24
S
9
G
4
Posts: 1,646
Reputation: 6,596

Post » Mon Mar 09, 2015 12:35 am

@codah
@aquinn

Added new plugin and fixed the bug now.

Change log (2015.3.7)

Added Phonegap ScreenOrientationLandscape
:auto lock screen orientation landscape. (fix xdk not locking ios orientation issue)
just insert into c2 capx

Thanks
Construct2 Cordova Plugins (currently 87 plugins): https://www.scirra.com/store/construct2 ... ugins-1662

Construct2 Prototype Capx (currently 50 capx): https://www.scirra.com/store/games-with ... -capx-3088

Home page: http://cranberrygame.com
B
65
S
22
G
81
Posts: 780
Reputation: 46,631

Post » Tue Mar 10, 2015 10:54 am

@cranberrygame Thank you, I'll check it out.
B
24
S
7
G
1
Posts: 186
Reputation: 2,716

Post » Fri Dec 11, 2015 2:07 am

@cranberrygame Which version of this plugin shall I use for cordova cli 4.1.2 ?
Image
B
9
S
1
Posts: 22
Reputation: 581

Post » Thu Jan 14, 2016 11:08 am

Would love to know what the free plugin is lanlppolito, because i am having the same is I see the last post was in dec 2014 its now jan 2016, I would have thought this had been fixed by now?
B
6
Posts: 17
Reputation: 284

Previous

Return to Distribution and Publishing

Who is online

Users browsing this forum: No registered users and 0 guests