The toolchain for running Chrome Apps on mobile is in early developer preview. Feel free to give us your feedback using the Github issue tracker, our Chrome Apps developer forum, on Stack Overflow, or our G+ Developers page.

You can run your Chrome Apps on Android and iOS via a toolchain based on Apache Cordova, an open source mobile development framework for building mobile apps with native capabilities using HTML, CSS and JavaScript.
Apache Cordova wraps your application's web code with a native application shell and allows you to distribute your hybrid web app via Google Play and/or the Apple App Store. To use Apache Cordova with an existing Chrome App, you use the cca (c ordova c hrome a pp) command-line tool.
There are a few special considerations that you should keep in mind when developing with Cordova; we've listed them in the considerations section.
To view which Chrome APIs are supported on mobile, visit the API Status page.
To preview your Chrome App on an Android device without the toolchain, use the Chrome Apps Developer Tool (ADT).
Let's get started.
The Chrome Apps for mobile toolchain can target iOS 6+ and Android 4.x+.
Node.js version 0.10.0 (or higher) with npm is required:
OS X or Linux: Installation executables are also available from nodejs.org. If you wish to avoid the need for root access, it may be more convenient to install via nvm. Example:
curl https://raw.github.com/creationix/nvm/master/install.sh | sh
source ~/.bash_profile || source ~/.profile || source ~/.bashrc
nvm install 0.10
nvm alias default 0.10When developing an application for Android, you will also need to install:
sdk/tools and sdk/platform-tools to your PATH environment variable. apt-get install ia32-libs.apache-ant-x.x.x/bin to your PATH environment variable.Please note that iOS development can only be done on OS X. In addition, you will need to install:
npm install -g ios-deploynpm install -g ios-simcca command-line toolInstall cca via npm:
npm install -g cca
To update the toolchain later with new releases: npm update -g cca.
Confirm that everything is installed correctly by running this command from the command line:
cca checkenv
You will see the version number of cca outputted and confirmation about your Android or iOS SDK installation.
To create a default mobile Chrome App project in a directory named YourApp run:
cca create YourApp
If you have already built a Chrome App and wish to port it to a mobile platform, you can use the --link-to flag to create a symlink to it:
cca create YourApp --link-to=path/to/manifest.json
If you instead wish to copy your existing Chrome App files, you can use the --copy-from flag:
cca create YourApp --copy-from=path/to/manifest.json
Don't have your own Chrome App yet? Try one of the many sample Chrome Apps with mobile support.
You can build and run your application in two ways:
cca tool, orFrom the root of your cca-generated project folder:
cca emulate androidandroid avd to set this up. Download additional emulator images by running android. To make the intel images run faster, install Intel's HAXM.cca run androidcca emulate ioscca run iosFile -> Import.Android > Existing Android Code Into Workspace.cca.*-CordovaLib.Open the project in Xcode by typing the following in a terminal window:
cd YourApp
open platforms/ios/*.xcodeprojMake sure you are building the right target.
In the top left (beside Run and Stop buttons), there is a dropdown to select target project and device. Ensure that YourApp is selected and not CordovaLib.
Click the Play button.
Your HTML, CSS, and JavaScript files live within the www directory of your cca project folder.
Important: After making changes to www/, you must run cca prepare before deploying your application. If you are running cca build, cca run, or cca emulate from the command line, the prepare step is done automatically. If you are developing using Eclipse/XCode, you must run cca prepare manually.
You can debug your Chrome App on mobile the same way that you debug Cordova applications.
Now that you have a working mobile Chrome App, there are lots of ways to improve the experience on mobile devices.
There are certain Chrome App settings that only apply to mobile platforms. We have created a www/manifest.mobile.json file to contain these, and the specific values are referenced throughout the plugin documentation and this guide.
You should adjust the values here accordingly.
Mobile apps need a few more icon resolutions than desktop Chrome Apps.
For Android, these sizes are needed:
For iOS apps, the required sizes differ depending on whether you support iOS 6 vs iOS 7. The minimum number of icons required are:
A complete icon list would look like this in your manifest.json file:
"icons": {
"16": "assets/icons/icon16.png",
"36": "assets/icons/icon36.png",
"48": "assets/icons/icon48.png",
"57": "assets/icons/icon57.png",
"72": "assets/icons/icon72.png",
"78": "assets/icons/icon78.png",
"96": "assets/icons/icon96.png",
"114": "assets/icons/icon114.png",
"120": "assets/icons/icon120.png",
"128": "assets/icons/icon128.png",
"144": "assets/icons/icon144.png",
"152": "assets/icons/icon152.png"
}
The icons will be copied to the appropriate places for each platform every time you run cca prepare.
Apps on iOS show a brief splash screen as the app is loading. A set of default Cordova splash screens are included in platforms/ios/[AppName]/Resources/splash.
The sizes needed are:
Splash screen images are not currently modified by cca.
In your project's platforms directory, you have two complete native projects: one for Android, and one for iOS. You can build release versions of these projects and publish them to Google Play or to the iOS App Store.
To publish your Android application to the Play Store:
Update the two Android version ids, then run cca prepare:
android:versionName is set using the version key in www/manifest.json (this sets the version of your desktop packaged app, too).android:versionCode is set using the versionCode key in www/manifest.mobile.js.
Edit (or create) platforms/android/ant.properties and set the key.store and key.alias properties (as explained in the Android developer docs).
Build your project:
./platforms/android/cordova/build --releaseFind your signed .apk located inside platforms/android/ant-build/.
Upload your signed application to the Google Play developer console.
Update the app version by setting the CFBundleVersion key in www/manifest.mobile.js, then run cca prepare.
Open the Xcode project file found under your platforms/ios directory:
open platforms/ios/*.xcodeproj
Follow Apple's App Distribution Guide.
If you're new to Chrome Apps, the biggest gotcha is that some web features are disabled. However, several of these do currently work within Cordova.
A Chrome App may not work out of the box on mobile. Some common problems with porting to mobile:
We've made many of the core Chrome APIs available to Chrome Apps for Mobile, including:
However, not all Chrome JavaScript APIs are implemented. And not all Chrome Desktop features are available on mobile:
<webview> tagYou can track progress from our API Status page.
The Chrome Apps Developer Tool (ADT) for Android is a standalone Android app that allows you to download and run a Chrome App without setting up the development toolchain as described above. Use the Chrome ADT when you want to quickly preview an existing Chrome App (already packaged as a .crx) on your Android device.
The Chrome ADT for Android is currently in a pre-alpha release. To try it out, view the ChromeADT.apk release notes for installation and usage instructions.