Exported my Construct 2 game with Intel XDK (edit: Crosswalk); an error message appears. How can I get rid of it?

I just found out about the Intel XDK on Indiecade today and I couldn't wait to get home to try a port of one of my Construct 2 games. The game ended up working fine, except that it had no audio when played on my Galaxy S5. Intel XDK emulator plays the game with sound, but for some reason it doesn't work on my phone. My volume is all the way up. Are there any tips for importing C2 games with the Intel kit to make sure the sound is preserved?

One thing I can add is when I run the application it gives me an error message as if I am trying to run it locally on my computer. Actual post:

Alert: Exported games will not work until you download them. (When using the file: /// protocol, browsers block many features for security reasons.)

And then it automatically jumps to:

Application Error: The connection to the server was unsuccessful. (File: ///android_asset/www/index.html)

... in fact, it stopped working altogether after two error messages as I entered this question.

Edit: OK ... so I exported it to XDK as Crosswalk, not just Android, and now the music works. However, the first error message I mentioned still appears. I don't want this in all my applications. Any way to get rid of it?

+3


source to share


4 answers


OK, so I was wrong: when I exported via Construct 2, I did what I always did and exported as a web app. What I had to do was export it as an Android app. I seriously don't know why I didn't try this first, but after exporting as Android and then using Intel XDK to migrate it using Crosswalk, everything is smooth.



I found my answer here: https://www.scirra.com/blog/133/introducing-crosswalk-the-new-way-to-publish-to-android

+2


source


I'm glad you found the answer here; I knew there would be a way :) Just wanted to chat as a follow-up, tomorrow there will be a webinar for a deeper tour of XDK and its features, including a pedestrian crossing, than I was able to provide on IndieCade. Let me know if this works for you!

Thanks, Brad



Webinar link: http://l.intelswpartner.com/ud?V4GjZxR-vxyrcx8RFF58HZ=33001

+1


source


This happens if you export as regular html5 and not as a Cordova app.

0


source


I had the same problem. I am calling other HTML offline and resolved the issue with this post: https://software.intel.com/en-us/xdk/docs/adding-third-party-plugins-to-your-xdk-cordova-app


How to make cordova.js Script link from My Project index.html file

To enable the use of Cordova plugins in HTML5 + Cordova project style, specify the cordova.js Script file exactly once in your index.html file:

If your project contains more than one HTML file (or page) that will use the Cordova APIs, you must include a link to the cordova.js Script file in each of those HTML files. It is highly recommended that you limit yourself to creating Single Page Applications (SPA) when building Cordova applications. For more information, see this Best Practice Guidelines in Cordoba article. Also note that cordova.js is a phantom file; it is not in your project directory, but is added by the Cordova build system when your application is built (it is configured for your application as part of the build process).


0


source







All Articles