xmnboy's Recent Forum Activity

  • Any way to export to android please help......????????????????????!!!!!!

    If you already have a project in the XDK, you can use the "Cordova Build Package" tool on the Build tab to export a project file that can be built with PhoneGap Build or used with Cordova CLI. See the links in that dialog for more details.

  • An APK (and an IPA and APX, etc.) is a ZIP file. The Crosswalk library is about 18-20MB in size (compressed), thus the reason your APK is about 22MB. However, when you install your app, the size on the device is the uncompressed size PLUS any local dataspace that is required by your app and the components you've included (such as Crosswalk).

    To get a better sense of how much of that is due to Crosswalk and how much is due to plugins and your code, build the app without Crosswalk and compare the install results.

  • Looks like you've got two plugins that are competing with each other.

    BTW -- when adding plugins, I highly recommend you add them via the Cordova plugin registry (it's part of the NPM registry). so that would mean adding a plugin using something like:

    cordova plugin add cordova-plugin-x-socialsharing[/code:1m1u6pmu]
    rather than using a URL like [url=https://...]https://...[/url].
    
    The versions in the NPM (cordova) registry are more likely to be stable and are repeatable. The contents of a git repo can change on a daily basis, but once published, a specific version in the NPM registry is fixed.
  • There are many plugins available to make AdMob ads work in your Cordova app. For an exhaustive list of AdMob plugins, go here > https://cordova.apache.org/plugins/?q=admob

    See the example on this page that implements a test page for "yet another AdMob plugin" (yaap) > https://software.intel.com/en-us/node/734463 <

    The tests above were done in response to another Construct2 user > admob-not-work-in-intel-xdk-3922_t191482 < who was using this AdMob plugin > https://github.com/admob-google/admob-cordova/ < to try and generate ads in his application.

    You need to "add a third-party plugin" when using the XDK to add any of these plugins. If you know the "npm registry" name of the plugin you set the "Plugin Source" to "npm" -- if you know the git repo URL you set the "Plugin Source" to "Git repo" -- more details available in the docs > https://software.intel.com/en-us/xdk/do ... ct-plugins <

    BTW -- this AdMob plugin looks like a good option if you want to avoid skimming, etc > https://www.npmjs.com/package/cordova-plugin-admob-free < the "npm name" is "cordova-plugin-admob-free" and the "git repo" name is "https://github.com/ratson/cordova-plugin-admob-free" and an example is provided here > https://github.com/ratson/cordova-plugi ... ples/basic <

    [quote:3uhz56jr]p.s. Once you have successfully configured your app to work with the AdMob plugin you choose to use, I highly recommend you export the project using the Cordova Build Package tool and start using PhoneGap Build or Cordova CLI, since the XDK build system will be retired at the end of June.

  • [quote:1iip31c3]If you have used the Intel XDK to build a Construct2 app... here are some instructions that will help you get started using PhoneGap Build.

    The key to PhoneGap Build is the config.xml file located in your project's root folder (the folder that also contains your www folder).

    Using the latest version of the Intel XDK, add some plugins and then use the "Cordova Build Package" feature (on the Build tab) to export a ZIP that is PhoneGap Build ready. Within that ZIP you'll find a config.xml file that works with PhoneGap Build (as well as Cordova CLI, if you choose that path).

    Add or delete a plugin from your Intel XDK project, or change some of your project properties in the Build Settings section of the Project tab. Then 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 be able to see what the export tool is doing. It's not that difficult to follow.

    The full set of directives available for 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 doing this on your own, the simplest thing to do is configure your project using the Intel XDK and then export your project using the "Cordova Build Package" tool. Once you have a project that builds with PhoneGap Build (or Cordova CLI), you can do it all outside the Intel XDK, by simply editing your project config.xml file directly.

    Please share these instructions with the rest of the Construct2 community that is having trouble.

  • 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.

  • 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.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • auramatt -- if you have already published an app to the Android store you will need to continue to use the same keystore. If you used the XDK to build your app for the Android store you need to download that keystore from your XDK account and submit it to PhoneGap Build.

    IMPORTANT! Do not lose your keystore or forget the password!! It cannot be replaced!!!

    To retrieve your keystore from your XDK account, see the instructions on this page > https://software.intel.com/en-us/xdk/do ... ordova-cli < about halfway down the article you'll see an image that shows how to get that keystore.

  • You do not have permission to view this post

  • 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.

  • You do not have permission to view this post

  • 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.

xmnboy's avatar

xmnboy

Member since 24 Feb, 2016

None one is following xmnboy yet!

Trophy Case

  • 8-Year Club
  • Email Verified

Progress

9/44
How to earn trophies