Inter-App Communication

There were several attempts to establish the universal, multi-platform, asynchronous way of data exchange from the Web applications to native apps or another Web apps and up to date no standardized solution was concieved.

There are, however, some basic workarounds for sending data to another applications. Native applications can register handlers to receive data from the Web apps using special URL prefixes (although differences exist between iOS and Android). There are also third-party non-standard services that coordinate sharing data between Web applications.

Google Chrome 18 implemented the Web Intents experimental API. It was conceptually based on Android Intents system. The apps interested in receiving data were required to be registered in Chrome Web Store and declare the intent support in the manifest file. The apps sending the data were able to invoke the Intent of the particular type and let the system handle the selection of the target application and its proper invocation. The API was removed in Chrome 24 because of various interoperability and usability issues. No other vendor implemented Web Intents.

The newest implementation, Web Share API, as of September 2017 available in Chrome on Android, is much simpler and consists of a method to invoke the platform-specific share mechanism and is limited to sharing named URLs only. There is a complementary Web Share Target API in an early design phase to allow registering Web applications as the share receivers.

API glimpse

Web Intents API

intent = new Intent(action, type, href)
Creates an object representing the request for a particular action (command) to be sent to the registered handling applications.
navigator.startActivity(intent, onSuccess, onFailure)
Invokes the system-defined application selection and data share dialog to send the request to another application.
Sends the result from the requested (target) application back to the requesting (source) application.

Web Share API

navigator.share({name, title, url})
Invokes the system-defined application selection and data share dialog to send the named URL to another application and returns a Promise resolved when the share was successful.

Live Demo

  • function intent() {
      if (!("Intent" in window)) {
        alert('Web Intents API not supported.');
      var intent = new Intent('',
      navigator.startActivity(intent, function () {
        console.log('Successful share')
      }, function (error) {
        console.log('Error sharing:', error);
    function share() {
      if (!("share" in navigator)) {
        alert('Web Share API not supported.');
          title: 'What Web Can Do Today',
          text: 'Can I rely on the Web Platform features to build my app? An overview of the device integration HTML5 APIs',
          url: ''
        .then(() => console.log('Successful share'))
        .catch(error => console.log('Error sharing:', error));
  • <p>
      <button class="btn btn-lg btn-default" onclick="intent()">Share<br>with <b>Web Intents</b></button>
      <button class="btn btn-lg btn-default" onclick="share()">Share<br>with <b>Web Share</b></button>