Black screen in exported via cordova/xdk projects

Bugs will be moved here once resolved.

Post » Thu Apr 14, 2016 11:25 am

Problem Description
Black screen in exported via cordova/xdk projects since Construct release r224 and later.
All works fine in builds r223 or earlier, and since r224 black screen started to appear instead of game.
Tested on same equal example project.

Attach a Capx
https://dl.dropboxusercontent.com/u/950 ... poroj.capx
For better investigation builded with xdk version https://dl.dropboxusercontent.com/u/950 ... st/MDZ.zip

Description of Capx
Just tester: simple one layer with two colored boxes that changes color on tap. No third party plugins or effects.

Steps to Reproduce Bug
  • Export via cordova
  • Build in xdk
  • Launch on device(tested on ipad air 2, iphone 4/5)

Observed Result
Black screen

Expected Result
Game launch


Operating System and Service Pack
Win10

Construct 2 Version ID
r223-r227
Creator of MiniDayZ
B
22
S
2
G
2
Posts: 75
Reputation: 1,858

Post » Sun Apr 17, 2016 5:24 pm

Same as me, I asked before but no one answer it seem we should back to R221.

R227 not work with iOS
B
15
S
5
G
3
Posts: 72
Reputation: 2,645

Post » Mon Apr 18, 2016 10:04 am

zeroflag wrote:Same as me, I asked before but no one answer it seem we should back to R221.

R227 not work with iOS


Yep, we can only use r223 or older. I was think it will be fixed in non beta release r227, but its not. We need @Ashley participation in this case.
Creator of MiniDayZ
B
22
S
2
G
2
Posts: 75
Reputation: 1,858

Post » Mon Apr 18, 2016 11:12 am

It sounds like the same issue:
issue-with-wkwebview-on-ios_t171504

On Cocoon this is causing a blackscreen as well.

Can you try following steps?

1) Serach for

Code: Select all
this.isWKWebView = !!(this.isiOS && this.isCordova && window.indexedDB);


in the c2runtime.js file and replace it with

Code: Select all
this.isWKWebView = !!(this.isiOS && !this.isCordova && window.indexedDB);


This doesn't make sense at all, but it disables the WKWebView.

Regards
Andy
Image Image iTunes: Match3 | Google Play: Match3
B
98
S
34
G
30
Posts: 1,130
Reputation: 27,917

Post » Mon Apr 18, 2016 11:54 am

The original report doesn't contain many details: what export options are you using exactly? Are you enabling WKWebView support or the new Intel XDK project format? (Both were introduced with r224.) Does it affect both iOS and Android or just one?
Scirra Founder
B
395
S
233
G
88
Posts: 24,376
Reputation: 193,842

Post » Mon Apr 18, 2016 1:10 pm

Ashley wrote:The original report doesn't contain many details: what export options are you using exactly? Are you enabling WKWebView support or the new Intel XDK project format? (Both were introduced with r224.) Does it affect both iOS and Android or just one?


I tried all combinations of enabling WKWebView or/and XDK new project format. Affects only iOS version.
Creator of MiniDayZ
B
22
S
2
G
2
Posts: 75
Reputation: 1,858

Post » Mon Apr 18, 2016 3:02 pm

Ashley wrote:The original report doesn't contain many details: what export options are you using exactly? Are you enabling WKWebView support or the new Intel XDK project format? (Both were introduced with r224.) Does it affect both iOS and Android or just one?


issue-with-wkwebview-on-ios_t171504

To Asheley please see this post I test many condition check/uncheck on cocoon&XDK it not work at all. (Just only iOS build)
B
15
S
5
G
3
Posts: 72
Reputation: 2,645

Post » Fri Apr 22, 2016 7:57 am

@Ashley any info about fix or something?
Creator of MiniDayZ
B
22
S
2
G
2
Posts: 75
Reputation: 1,858

Post » Fri Apr 22, 2016 1:18 pm

I can't reproduce this at all. I have now built iOS apps with the Intel XDK in the following combinations:
Reported .capx - new XDK project format - WKWebView - unminified
Reported .capx - new XDK project format - WKWebView - minified
sbperftest - new XDK project format - WKWebView - unminified
sbperftest - new XDK project format - old webview - unminified
sbperftest - old XDK project format - old webview - unminified
All five tests were exported with r227 and ran fine built by the Intel XDK running on an iPad Air 2 (iOS 9.3.1).

I'm guessing it might be one of these issues:
- are you testing on an older version of iOS? Maybe iOS 8?
- are you re-exporting over the same XDK project? I heard there are known bugs with that - I used a fresh project each time
- are you sure your build settings are all correct? I was testing with a newly configured certificate (it said something about being able to import an older certificate, but I couldn't build with that)
Scirra Founder
B
395
S
233
G
88
Posts: 24,376
Reputation: 193,842

Post » Sun Apr 24, 2016 3:49 am

I also have been having the same problem with a black screen appearing after the construct splash screen though mine is only if I add the Cordova WKWebView plugins in Intel XDK when trying to enable WKWebView on ios. I have tried a whole bunch of stuff with the new Intel XDK project format enabled and disabled. I have been trying to work it out over on the Intel forums but when I came across this I decided to download the capx and like Ashley I have no problems when I export the project in the XDK project format. It works on my iPhone both with and without WKWebView.

This leads to believe that if the Intel XDK project format adds all the necessary WKWebView plugins and settings and it definitely works (as proven above) then is there somehow a setting in Construct that can mess with Intel in regards to WKWebView? Perhaps its something if you made a project in the past and have updated Construct over time? (For instance I have been working on my project for 6 months and updated Construct as the updates have come out)
B
4
Posts: 6
Reputation: 212

Next

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest