Important: Chrome will be removing support for Chrome Apps on all platforms. Chrome browser and the Chrome Web Store will continue to support extensions. Read the announcement and learn more about migrating your app.

Transitioning from Chrome Apps

To transition away from a Chrome packaged or hosted app, the following options are available.

Chrome packaged apps

Recommended migration options for packaged apps are listed in order from simplest to most complicated.

Build a Progressive Web App

Building a Progressive Web App (PWA) is the ideal way to reach users across all operating systems.
As part of our Web Capabilities (codename: Fugu) efforts, we are investigating ways to improve the migration path to the web for developers that depend on exclusive Chrome App APIs—in particular the Sockets, HID, File System, and Serial APIs. If there are web platform features you need that are only available in select browsers, you can use feature detection to gracefully degrade or include explanatory text when your app is run in a browser that doesn't support a particular API. If there are gaps in the web platform for your application, please let us know.

PWAs are installable on both desktop and mobile platforms. Users who choose to install your PWA can launch it via icons and shortcuts, similar to the way that Chrome Apps can be installed today.

Build an extension-enhanced web page

If there is a capability that your Chrome App has that the regular web platform can't provide, it might be available as an extension API. In this case, you use a progressive web app together with an externally connectable extension your web app can send messages to. Building a web app is typically preferable to this, because this approach forces users to install an extension that is only useful on your site and can cause increased friction.

As Chrome extensions can't be run on other browsers, you should detect when required functionality isn't available and provide explanatory text for users on these other browsers.

Build an extension

Depending on the user experience you want to provide, it might make sense to convert your entire app into an extension. For example you could provide a browser action button which shows a small popup window for your user interface, or navigates to a page your extension provides. For some apps, this might be a good enough user experience to be a viable solution.

Note there are significant costs to this approach. While some browsers support the same extensions API as Chrome, this support is not universal. This can significant friction for your users who would prefer a cross-browser alternative.

Build for Chrome OS via Android

If you are an Android developer interested in building for Chrome OS, you can optimize your Android application for a better experience.

Chrome App API/Capability migration recommendations (current as of Nov. 2019):

Chrome App feature/functionality Web platform migration recommendations Android migration recommendations Extension migration recommendations
chrome.accessibilityFeatures chrome.accessibilityFeatures
chrome.alarms Notification Triggers WorkManager chrome.alarms
chrome.app.runtime Launch Event Activity Lifecycle
chrome.app.runtime.onRestarted Page Life Cycle Activity.onResume
chrome.app.window Window Placement / Screen Enumeration chrome.windows
chrome.audio Audio Device Client Some Audio APIs
chrome.bluetooth Web Bluetooth API Bluetooth API
chrome.bluetoothLowEnergy Web Bluetooth API BTLE
chrome.bluetoothSocket Web Bluetooth API Bluetooth Socket
chrome.browser window.open Intent system
chrome.commands UI Events Hard-code keyboard commands chrome.commands
chrome.contextMenus (HTML/script) Native, Android has its own contextmenus
chrome.documentScan chrome.documentScan
chrome.events Alarms chrome.events
chrome.extensionTypes N/A chrome.extensionTypes
chrome.fileSystem Native FileSystem API
chrome.fileSystemProvider FileSystemProvider chrome.fileSystemProvider
chrome.gcm Web Push Notifications N/A chrome.gcm
chrome.hid Web HID API
chrome.i18n (HTML/script) Localization chrome.i18n
chrome.identity OAuth API or Credential Management API Native chrome.identity
chrome.idle User Idle Detection API chrome.idle
chrome.instanceID Web push Per-App ID needs to be self-generated chrome.instanceID
chrome.mdns NDS discovery
chrome.mediaGalleries Native FileSystem API
chrome.networking.onc
chrome.notifications Notifications API Notifications show in lower right of CrOS as system level notifications chrome.notifications
chrome.permissions Web Permissions API N/A chrome.permissions
chrome.power WakeLock API In discussion chrome.power
chrome.printerProvider Transition to Extension android.printservice chrome.printerProvider
chrome.runtime Service Workers + Page Lifecycle API chrome.runtime
chrome.runtime.connect Channel Messaging API chrome.runtime.connect
chrome.runtime.sendMessage chrome.runtime.sendMessage
chrome.serial Web Serial API
chrome.sockets.tcp QuicTransport C/S (or WebSockets) android.net.ConnectivityManager and Java standard socket API
chrome.sockets.tcpServer android.net.ConnectivityManager and Java standard socket API
chrome.sockets.udp QuicTransport C/S DatagramSocket API for UDP
chrome.storage Cache API:https://www.chromestatus.com/feature/5072127703121920
IndexedDB:https://www.chromestatus.com/feature/6507459568992256
chrome.storage
chrome.storage.managed Managed Configurations chrome.storage.managed
chrome.syncFileSystem Java - Drive REST API
chrome.system.cpu navigator.hardwareConcurrency chrome.system.cpu
chrome.system.display window.screen DisplayMetrics, but high density displays are wonky
chrome.system.memory navigator.deviceMemory chrome.system.memory
chrome.system.network Network Information API
chrome.system.storage navigator.storage chrome.system.storage
chrome.tts Web Speech API (Synthesis) Android TTS 2009 chrome.tts
chrome.types chrome.types
chrome.usb Web USB API Temporary* private USB host API
chrome.virtualKeyboard Soft Input Method
chrome.vpnProvider VpnService chrome.vpnProvider
chrome.wallpaper WallpaperManager chrome.wallpaper
externally_connectable
kiosk_enabled
minimum_chrome_version Target Android version minimum_chrome_version
offline_enabled Offline via Service Workers Native
NaCl Migration Guide
<webview> tag Native WebView

FAQs

Q: What if the Chrome App migration recommendations do not meet my use case requirements?

We'd like your feedback! Please fill out this form with as much detail as possible.

Q: My Chrome App has many users. What's the best way to migrate them to my new web app and deprecate my Chrome App?

You will still be able to publish updates to your Chrome App until the runtime is removed. We recommend updating your app to include a message indicating that your app has been discontinued, and that users should visit your website going forward (see example below). You can also include an "uninstall" button that calls the uninstallSelf() method.

Starting with Chrome 75, the installReplacementWebApp() method can be used inside of a Chrome App, in response to a button click or other user gesture, to automatically trigger the installation flow for your replacement PWA.

Shows button that can link to install PWA

Q: I want to continue to have a UI affordance that enables users to launch my app from the taskbar/dock/homescreen. What should I do?

Progressive Web Apps are installable on both desktop and mobile platforms. Users who choose to install your PWA can launch it via icons and shortcuts, similar to the way that Chrome Apps can be installed today.

Q: I want my app to run in its own window, not in a tab. Is this something I can do with a web app?

You can provide metadata in your Progressive Web App's manifest file indicating that, when launched after installation, it will open in its own window.

Q: My app supports keyboard shortcuts. Can the web support this also?

Web apps can support keyboard shortcuts by listening to the various key events (e.g. keydown), but the shortcuts you can support are limited. For example, you cannot intercept Ctrl+N, Ctrl+T etc. as these are used by the browser. Or, these might be shortcuts that are handled by the operating system (e.g. Alt+Tab on Windows).

When your web app is used in fullscreen mode, you are able to intercept these system shortcuts.

The Extension Commands API supports richer keyboard shortcuts which operate across the entire browser, which may enable new capabilities if transitioning to an extension is possible.

Q: My app needs to run when the user is offline. Can I do that with a web app?

Yes, you can use service workers to make your site run offline. The Workbox project can simplify developing a full-featured caching strategy for your service worker.

Q: My app uses the chrome.gcm API to receive push messages from the cloud. Can the open web do that?

Yes, assuming the user has granted permission, the Push API and Notifications API can allow your web app to show your user push notifications.

Q: My app needs to be able to show notifications to the user even when it has no windows open. Can I do that with the open web?

Yes, the Push API and Notifications API can allow your web app to show your user push notifications even when your web app is closed, as long as an instance of the browser is running.

Q: My app uses chrome.bluetooth/chrome.usb to talk to a Bluetooth/USB device. Can this be done on the open web?

Both Web Bluetooth and Web USB are available in certain browsers, and can be used (along with feature detection) in a Progressive Web App.

Q: My app uses the chrome.fileSystem API to read and write user-specified files and / or directories. Can this be done on the open web?

The open web can read single files that the user opens, but cannot retain access to those files, write to those files, or have any access to directories.

There are plans to implement direct filesystem access, and an experimental implementation is available in Chrome, but that functionality has not yet been fully standardized.

Q: My app uses the chrome sockets API to do networking. Can this be done with the open web?

You might be able to do what you need with WebSockets. However, to use this, you will likely need to change the remote end of your connection.

If that isn't possible, we'd like to hear more about your use case—please let us know about what you're trying to accomplish via the Chromium issue tracker.

Q: What resources are available to help with a Progressive Web App migration?

The Chrome team maintains the following sites and tools with information that can help during your migration:

If you have a specific question not addressed via those resources, we recommend asking a question on Stack Overflow. This template can be used to create a question tagged with both google-chrome-app and progressive-web-apps, to ensure maximum visibility.

Q: I'd like to use a capability not mentioned already that lacks a web alternative. How do I make a feature request?

We'd like to hear more about what you're trying to accomplish— let us know via the Chromium issue tracker.

Chrome hosted apps

FAQs

Q: My hosted app uses the notifications permission. How do I do that on the web?

Yes, assuming the user has granted permission, the Push API and Notifications API can allow your web app to show your user push notifications.

Q: My hosted app uses the unlimitedStorage permission. How do I do that on the web?

The unlimitedStorage permission ensured that data you store was ‘Persistent', which means it can only be cleared manually by the user.

The recommended alternative is to request Persistent Storage permission within your web app.

Q: My hosted app uses the geolocation permission. How do I do that on the web?

The Geolocation API can be used in web apps to locate a user's position.

Q: My hosted app uses the background permission. How do I do that on the web?

To ensure minimal power consumption we have been careful about introducing a generic method for sites to run in the background on user's devices.

Sites that have deployed a service worker can ensure actions taken by the user while offline are synced to the server using the Background Sync API. This API allows sites to run some limited code in the background when the device re-connects to the internet, even if the tab has since been closed. Note that this API doesn't allow for the service worker to be woken up periodically.

A separate feature, Periodic Background Sync, is being implemented as an experimental feature in Chrome. It allows developers to request periodic updates via a special event exposed on the service worker, with controls over the frequency of those updates.

Q: My hosted app uses the clipboardRead and/or clipboardWrite permission. How do I do that on the web?

Web apps can use a standard platform API to copy and paste both text and images programmatically.