Intel XDK Release 3900

Discussion and feedback on Construct 2

Post » Fri May 05, 2017 10:43 pm

IceVANPS wrote:
Ashley wrote:AFAIK, PhoneGap Build has identical support to the XDK. So you can just use PhoneGap Build now. They are both based on Cordova.

The main reason we postponed our own build system is the XDK did the job for free. It's a shame they are retracting a free service, but since nobody ever paid for it, it's not really that surprising.


Hi Ashley,

I think they are not identical.
For example with xdk I can use the GPS and the camera with android. With PhoneGap not working.
Is there any way to fix this?

Thanks

@IceVANPS -- I cannot speak for Ashley, but the PhoneGap Build system is, practically speaking, the same as the XDK build system (with more CLI version options and some additional config options). How you interact with PhoneGap Build is different than how you interact with the XDK build system, but both generate the same packages and both rely on Cordova CLI (in the cloud) to perform the build. Both use the identical Cordova plugins to provide access to native device features and APIs. These are the very same plugins that Cordova CLI uses, there are absolutely no differences regarding plugins and APIs when comparing PhoneGap Build to the Intel XDK to Cordova CLI.

If you are having trouble with the GPS and camera on PhoneGap Build I suspect you are experiencing a configuration issue. Have you tried using the Cordova Build Package export option in the XDK to create a package that you can submit to PhoneGap Build?
Intel Corporation
B
13
S
3
Posts: 79
Reputation: 925

Post » Mon May 08, 2017 2:38 pm

xmnboy wrote:
SamRock wrote:@xmnboy -- Thanks for the details. Its really really sad XDK publish is going away!

I heard Visual Studio allows you to compile APKs using Cordova projects. Is that true? Can same be used for iOS compile as well?

Yes, Visual Studio has an add-on for creating Cordova apps. They have been very active in the Cordova project. However, they do not provide a "build in the cloud" option, like the XDK or PhoneGap Build. You need access to a Mac to build for iOS; however, they support the use of a "remote" Mac on your local network.

Importing a Construct2 app into a Visual Studio project probably requires quite a bit of effort. I recommend you use PhoneGap Build (which does not require access to a Mac) or build with Cordova CLI directly (which does require access to a Mac, like Visual Studio).


I see that on Phonegap requires some kind of subscription. Can I create any number of games on it? I know cocoonIO has some limitation on number of projects that I ca build
Create your own Isometric Runner Game using C2:

Image

Check out my game "Last of the Survivors":
Play Store
App Store
B
58
S
11
G
2
Posts: 418
Reputation: 5,239

Post » Mon May 08, 2017 11:14 pm

SamRock wrote:I see that on Phonegap requires some kind of subscription. Can I create any number of games on it? I know cocoonIO has some limitation on number of projects that I ca build

The PhoneGap Build plans are published here > https://build.phonegap.com/plans <

You can push as many apps as you want to (one at a time) into the free private slot, as long as each app meets the free app slot requirements (for example, 50 MB maximum app size and no private plugins). Just try it, you'll see what I mean; it's very easy.
Intel Corporation
B
13
S
3
Posts: 79
Reputation: 925

Post » Sat May 13, 2017 12:40 am

xmnboy wrote:The PhoneGap Build plans are published here > https://build.phonegap.com/plans <

You can push as many apps as you want to (one at a time) into the free private slot, as long as each app meets the free app slot requirements (for example, 50 MB maximum app size and no private plugins). Just try it, you'll see what I mean; it's very easy.


Thanks again for the details! I been trying PhoneGap now. Is there a documentation or tutorial that explains all the steps or build an app?

I read somewhere that Phonegap doesnt need Crosswalk and the APK size will be much smaller compared to XDK. But right now its about 47MB!! My CocoonIO was 23MB :(

I am doing something wrong?
Create your own Isometric Runner Game using C2:

Image

Check out my game "Last of the Survivors":
Play Store
App Store
B
58
S
11
G
2
Posts: 418
Reputation: 5,239

Post » Tue May 16, 2017 10:21 pm

@SamRock -- if you exported the Cordova Build Package using the XDK and had Crosswalk enabled in the XDK, the export package will include instructions to tell PhoneGap to build with Crosswalk (this only works for Embedded Crosswalk, it won't work with Shared Crosswalk). PhoneGap and the XDK and Cordova all build the same thing. Your performance will be the same, regardless of which you use.

Also, when you build an Embedded Crosswalk image with PhoneGap Build, you will get a single APK that contains the binaries for both an x86 and an ARM system, so it will be about 20MB larger than what you get when you build with the XDK, which returns two APK files, rather than one.

I cannot comment on the CocoonIO build because I do not know if they use Crosswalk. It is my understanding that they do something else, which may account for the size difference.
Intel Corporation
B
13
S
3
Posts: 79
Reputation: 925

Post » Tue May 16, 2017 11:14 pm

@xmnboy Thank for responding to all my queries :)

I been trying to build my game on all three tools, XDK, phone gap and CocoonIO. When I install the APK ad run the game for the first time, there is always a black screen appearing right after C2 Loader progress screen. The game is running the background, because when I gap the black screen it registers touch and goes to other layouts. When go to phone Home Screen and come back to the game, the black screen is gone.

Strangely when I run the game the second time, it runs perfectly! There is no black screen at all!! It's happening g on all three builds

I have build on coccon and Xdk in past,but never had this issue in 2 years. Do you know what might be causing this? I m going crazy :( as I m unable to release an important bug fix for my game. I even had to pull down my iOS app to avoid negative reviews. Now I m unable to update the game

Copying @Ashley too
Create your own Isometric Runner Game using C2:

Image

Check out my game "Last of the Survivors":
Play Store
App Store
B
58
S
11
G
2
Posts: 418
Reputation: 5,239

Post » Wed May 17, 2017 11:44 pm

@SamRock -- I recall something like this from some other users, this thread might include some clues > https://software.intel.com/en-us/forums ... pic/628753 <

Also, have you tried building without Crosswalk in the XDK? (Uncheck the "optimize for Crosswalk" button). You might want to set the minimum API level to 21, to restrict the app to installation on Android 5.x and later devices. Crosswalk is not needed for Android 5.x and above. If you export to PhoneGap Build with those settings you'll also get non-Crosswalk build.
Intel Corporation
B
13
S
3
Posts: 79
Reputation: 925

Post » Fri May 19, 2017 7:27 pm

xmnboy wrote:@SamRock -- I recall something like this from some other users, this thread might include some clues > https://software.intel.com/en-us/forums ... pic/628753 <

Also, have you tried building without Crosswalk in the XDK? (Uncheck the "optimize for Crosswalk" button). You might want to set the minimum API level to 21, to restrict the app to installation on Android 5.x and later devices. Crosswalk is not needed for Android 5.x and above. If you export to PhoneGap Build with those settings you'll also get non-Crosswalk build.

IS there a step by step guide for C2+PhoneGap? Because, honestly... I've spent about 30 minutes and I still don't know what to even click lol. With XDK it was confusing but at least I had buttons to press - now I don't even know where are the buttons. Remember that C2 is a tool for code-dumb people
B
28
S
8
G
7
Posts: 643
Reputation: 6,457

Post » Wed May 24, 2017 8:45 pm

irbis wrote:IS there a step by step guide for C2+PhoneGap? Because, honestly... I've spent about 30 minutes and I still don't know what to even click lol. With XDK it was confusing but at least I had buttons to press - now I don't even know where are the buttons. Remember that C2 is a tool for code-dumb people

The key to PhoneGap Build is the config.xml file in the project root. Using the XDK, add some plugins and then use the "Cordova Build Package" feature (on the Build tab) to export a ZIP that can be submitted to PhoneGap Build. Within that ZIP you'll find a config.xml file that works with PhoneGap Build (and with Cordova CLI).

Add or delete a plugin from your XDK project, or change some settings in the Build Settings, and use the "Cordova Build Package" tool to export another ZIP file, a second time. Compare the config.xml from the second export to the first. You'll see what it is doing. It's not that difficult.

The full contents of the config.xml file are documented on the PhoneGap Build and Apache Cordova sites. The PhoneGap Build version of a config.xml file is a superset of the Cordova one. But to get started, the simplest thing to do is configure your project using the XDK and then exporting using the "Cordova Build Package" tool. From there, you can do it all outside the XDK, by editing your project config.xml file directly.

@irbis -- Please share these instructions with the rest of the Construct2 community.
Intel Corporation
B
13
S
3
Posts: 79
Reputation: 925

Post » Wed May 24, 2017 11:04 pm

xmnboy wrote:@SamRock -- I recall something like this from some other users, this thread might include some clues > https://software.intel.com/en-us/forums ... pic/628753 <

Also, have you tried building without Crosswalk in the XDK? (Uncheck the "optimize for Crosswalk" button). You might want to set the minimum API level to 21, to restrict the app to installation on Android 5.x and later devices. Crosswalk is not needed for Android 5.x and above. If you export to PhoneGap Build with those settings you'll also get non-Crosswalk build.


@xmnboy Apparently the issue was with JSON plugin! I used Remote Debugging to see what error messages were generate after the APK run on my phone. There was some function missing, I disabled the code and I dont have Black screens an more :)

Thank you so much for all your help! Will Dearly miss XDK! :(
Create your own Isometric Runner Game using C2:

Image

Check out my game "Last of the Survivors":
Play Store
App Store
B
58
S
11
G
2
Posts: 418
Reputation: 5,239

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 6 guests