New Intel XDK version released

Discussion and feedback on Construct 2

Post » Fri Apr 08, 2016 8:17 am

@Cipriux Thank you for your comment, will may you show me the way you use in construct 2 to open a new link like your game, for example when you say to the people rate us or rate this game. can you show me the example. i use browser object, and open in new window, and i put my game to rate but when i tested it, it does not work with the plugin you put it.
B
22
S
8
G
1
Posts: 68
Reputation: 2,141

Post » Fri Apr 08, 2016 8:37 am

@SaRaB To make the user open your game in Google Play Store (directly in Play Store app), use the plugin Browser->Go to URL and write: market://details?id=com.synapseone.test3
Replace com.synapseone.test3 with your bundle ID
To go to Google Play Store and show all your games, write instead: market://search?q=pub:SynapseOne
where synapseone is my developer name. This type of URL will be opened directly in Play Store app installed on the phone instead of the default browser installed
More info here: http://developer.android.com/distribute ... nking.html
B
81
S
21
G
23
Posts: 515
Reputation: 18,702

Post » Sat Apr 09, 2016 12:39 am

I am still getting game freezes after closing interstitial ads... :(
B
82
S
32
G
7
Posts: 281
Reputation: 10,685

Post » Sat Apr 09, 2016 12:43 am

Also, trying to go to another URL, (Like rate my app) is also not working anymore.

And one tiny gripe is there is this funny white line on the bottom of the screen whenever the app opens, looks glitchy to me...
B
82
S
32
G
7
Posts: 281
Reputation: 10,685

Post » Sat Apr 09, 2016 11:50 am

@Cipriux Thank you for your comment again, will it does not work until now, I did what you said below and I opened the site you entered it, then I did what the site said, all of these does not work on mobile devices, so I upload two screenshots to see what i am doing, is it right of wrong.

See screenshot 1
http://up.harajgulf.com/do.php?img=679578
Screenshot 2
http://up.harajgulf.com/do.php?img=679577

So tell me please what should I do now to make this work perfect.
This action is on new window, i did also go to URL with out new window, i did many ways still does not work.

Thank you.
B
22
S
8
G
1
Posts: 68
Reputation: 2,141

Post » Sat Apr 09, 2016 7:15 pm

@SaRaB Try adding inAppBrowser plugin in XDK. Go to Core Plugins -> InAppBrowser
Also in C2, try instead of Go to URL in new window, Go to URL -> target self
[EDIT] Just tested with your URL and Browser new windows and it works for me. Adding InAppBrowser should make it work. Also Device should also be pressent in the Plugins list
B
81
S
21
G
23
Posts: 515
Reputation: 18,702

Post » Wed Apr 20, 2016 8:37 am

Hi all!

I have problem (black screen) with wkwebview and XDK, after a long time to find a solution I turned to Intel and engineers gave this answer:

-------------------------------------------------------------------------------------------------------

I'm not sure what is going on in this block of code from c2_runtime.js:
a.prototype.HF = function() {
var a = this;
if (this.Pj)
this.Gw.startServer({
port: 0,
localhost_only: !0
},

Pj is true with WKWebView and false with UIWebView, it gets initialized like this:
this.Pj=!!(this.Eb && this.Md && window.indexedDB);
window.indexedDB is false with UIWebView.

Hmm, when I started writing this I didn't look at that line carefully enough.
Gw is supposed to get initialized as cordova.plugins.CorHttpd:
this.Pj && (this.Gw = cordova && cordova.plugins && cordova.plugins.CorHttpd ? cordova.plugins.CorHttpd : null);

It is checking if a plugin is installed: cordova.plugins.CorHttpd:
https://github.com/floatinghotpot/cordova-httpd

It looks like construct2 is detecting wkwebview and expecting that plugin to be present with wkwebview.
I added the plugin to the project and built it again, but it still doesn't work.
I think it needs the AWS scripts.

I think he needs to do a few things to get this working with WKWebView:

1. add the cordova-httpd plugin
Note that this is not an Intel XDK recommendation; based on my analysis it seems to be a Construct2 requirement.
He might be able to get more info via Contruct2 docs or support.
2. direct file XHR requests to the local webserver run by cordova-httpd (the endpoint can be obtained by calling the getURL method of the plugin)
possibly construct2 may have a way of doing this for the user?
3. defer loading the aws scripts until after the local webserver has started


I think I'll stop here as it seems like there are some Contruct2 requirements that we or the user needs to learn more about.
I guess we could get in touch with Scirra if this customer is important or represents a class of users that we want to support.
Or if you can find more docs or information about using WKWebView with Construct2, I'd like to read it.
The only thing I could find was this blog post, which does not provide any integration information:
https://www.scirra.com/blog/174/boostin ... -wkwebview
Maybe Scirra's XDK export is not doing everything it needs to in order to allow this to work?

-------------------------------------------------------------------------------------------------------

@Ashley what you can say about it?
Thank you.
B
12
S
3
Posts: 115
Reputation: 1,434

Post » Wed Apr 20, 2016 12:22 pm

That's our code to work around WKWebView limitations. It should only be used if you enable WKWebView when exporting from C2, and then it should automatically add the CorHttpd plugin to the project (at least in the new Intel XDK project format...). It should work if you either turn off WKWebView or add the CorHttpd plugin.
Scirra Founder
B
397
S
236
G
88
Posts: 24,419
Reputation: 194,542

Post » Thu Apr 21, 2016 6:57 am

@Ashley thank you for reply. My app work fine after than i add cordova-plugin-httpd, but I'm not completely sure whether it works correctly. Besides "Use wkwebwiev for ios" and adding httpd plugin, should i add and WKWebView Engine plugin in XDK or not?
B
12
S
3
Posts: 115
Reputation: 1,434

Post » Thu Apr 21, 2016 9:21 am

New release of Intel XDK 3240

https://software.intel.com/es-es/intel-xdk
B
157
S
27
G
17
Posts: 912
Reputation: 32,602

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 7 guests