Google today launched Chrome apps for iOS and Android, which will see Chrome-based apps encased in a native application shell that allows them to be distributed through the Apple App Store and Google Play. Currently, Chrome-packaged apps are written in JavaScript, HTML, and CSS, but are able to launch outside the browser, access APIs and work offline.
Developers can access an early developer preview of a toolchain based on Apache Cordova, an open source platform for building native mobile applications with HTML, CSS, and JavaScript. Using the toolchain, developers can wrap existing Chrome Apps with a native shell, which transforms them into apps that can be sold on the App Store.
Example of a Chrome To-Do app running on OS X and AndroidWe provide a simple developer workflow for packaging a Chrome App natively for mobile platforms. You can run your Chrome App on a device or emulator using the command-line or an IDE. Alternatively, you can use the Chrome Apps Developer Tool to run your app on an Android device without the need to install an IDE or the mobile platform’s SDK.Google has made multiple core Chrome APIs available to Chrome apps that are designed to run on mobile devices, including automatic sign-in via OAuth2, push messaging, storage, alarms, file system syncing able to store and retrieve files backed by Google Drive, and more.
In addition to the Chrome APIs, developers are also able to access APIs supported by the Cordova platform.
Chrome mobile apps come following the September launch of Chrome apps that work offline by default and function as native applications. In December, Google brought Chrome apps to the Mac, following a beta testing period that began in May. Chrome apps on the Mac are designed to function like native Mac apps, working offline, updating automatically, and syncing on any computer where a user is signed into Chrome.
Developers have the opportunity to begin working with Apache Cordova and their Chrome apps beginning today, but it may be some time before consumers see Chrome apps in the App Store.