Cordova.js missing but referenced in exported index.html

Bugs will be moved here once resolved.

Post » Fri Jun 12, 2015 6:48 pm

Problem Description
____ A concise description of your problem here ____
When my project is exported for cordova for crosswalk, the index.html page has a script tag for
<script src="cordova.js"></script>
but this file is not in the exported project. The app will compile and run but crashes at different points in a fashion that seems as if it is closing itself in an attempt to open another app.
Attach a Capx
____ Upload a Capx to this post ____
https://www.dropbox.com/sh/bhxiyhuhvk26 ... Gu_Va?dl=0
Description of Capx
____ Concise description of what this CapX does ____
The above attached capx is completely blank, just exported it as a crosswalk and included a link to a folder containing the bug.
Steps to Reproduce Bug
  • Step 1 create a project
  • Step 2 export as Cordova for Crosswalk on android version 4.0/universal/android assets only/only uses media checked in permissions
  • Step 3 etc.

Observed Result
____ What happens? ____
cordova.js not included with export. I am assuming, potentially incorrectly, that this may be a source of later bugs I am seeing as my project exported to Node/Web etc. etc. all fine until exported to an apk via cordova.
Expected Result
____ What do you expect to happen? ____
Includes cordova.js as referenced in tag?
Affected Browsers
    [NO] Chrome: (YES/NO)
    [NO] FireFox: (YES/NO)
    [NO] Internet Explorer: (YES/NO)

Operating System and Service Pack
____ Your operating system and service pack ____
Windows 7 64 bit
Construct 2 Version ID
____ Exact version ID of Construct 2 you're using ____
r207
B
27
S
3
G
1
Posts: 48
Reputation: 1,661

Post » Thu Jun 18, 2015 3:55 pm

This is by design. Cordova adds the cordova.js file so we do not include it in the exported project.
Scirra Founder
B
402
S
238
G
89
Posts: 24,625
Reputation: 196,017

Post » Wed Jun 24, 2015 11:59 am

Got it, thank you.
B
27
S
3
G
1
Posts: 48
Reputation: 1,661


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests