Permalink
Fetching contributors…
Cannot retrieve contributors at this time
104 lines (88 sloc) 5.48 KB

Chrome Apps APIs and Libraries

APIs

See the reference guide for building Chrome Packaged Apps on desktop.

This list tracks API support on mobile.

Current as of July 2014.

Chrome Apps APIs

  • alarms - run tasks periodically
    • Working on Android and iOS.
    • Caveat: on iOS alarms only fire when app is active (foreground).
  • app.window - manipulate app window(s)
    • Partially supported on Android and iOS (see README).
  • fileSystem
    • Exists but is buggy. Requires attention.
  • gcm - receive push messages from your server
    • Working on Android only
    • Some caveats at the moment (see README)
  • i18n - change your app's strings based on locale
    • JS methods work (chrome.i18n.getMessage() and chrome.i18n.getAcceptLanguages()).
    • CSS placeholders not implemented.
  • identity - sign-in users using OAuth2 without the need for a password
    • Working on Android and iOS.
    • iOS requires Google+ app for password-less login.
  • idle - detect when the machine's idle state changes
    • Working on Android and iOS.
    • Doesn't detect system idle. Only app idle.
  • notifications - create local notifications
    • Working on Android only.
  • power - prevent device from sleeping
    • Working on Android and iOS.
  • pushMessaging - receive push messages from your server
    • Beta quality on Android and iOS.
  • socket - send and receive data over the network using TCP and UDP
    • Working on Android and iOS (as of Nov 2014).
  • sockets.udp
    • Working on Android and iOS (as of Nov 2014).
  • sockets.tcp
    • Working on Android and iOS (as of Nov 2014).
  • sockets.tcpServer
    • Working on Android and iOS.
  • storage - store and retrieve key-value data locally
    • Working on Android and iOS.
    • chrome.storage.sync storage does not sync, but works like chrome.storage.local.
  • syncFileSystem - store and retrieve files backed by Google Drive
    • Not feasible.
  • system.cpu - query basic CPU information of the system
    • Working on Android and iOS.
  • system.display - query display metadata
    • Alpha quality on Android and iOS.
  • system.memory - get physical memory information
    • Working on Android and iOS.
  • system.network - retrieves information about local network adapters
    • Working on Android and iOS.
  • system.storage - query storage device information and be notified when a removable storage device is attached and detached.
    • Working on Android and iOS.

Other APIs

  • payments - sell virtual goods within your mobile app
    • Working on Android and iOS.
    • Requires manual steps for App Store / Play Store registration.
  • audioCapture - capture audio directly from the user's Microphone via the getUserMedia API.
    • Working on Android only.
  • videoCapture - capture video directly from the user's Web Cam via the getUserMedia API.
    • Working on Android only.

APIs Coming in the Near Term

  • runtime.getPackageDirectoryEntry
  • mediaGalleries
  • Better notifications and alarms support

APIs Coming in the Medium Term

  • bluetooth
  • fileSystem (fixes)
  • location

APIs Coming in the Long Term

  • commands
  • contextMenus
  • permissions
  • tts
  • usb
  • accessibilityFeatures
  • audio
  • hid
  • wallpaper
  • webstore
  • webview tag

Libraries

This is, of course, not an exhaustive list! More will be added as we find them—don't hesitate to contact us if you know of a great, useful library.