Search docs/

Web Intent

This Plugin provides a general purpose shim layer for the Android intent mechanism, exposing various ways to handle sending and receiving intents.

https://github.com/darryncampbell/darryncampbell-cordova-plugin-intent

Stuck on a Cordova issue?

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic's experts offer official maintenance, support, and integration help.

Contact Us Today!

Installation

ionic cordova plugin add com-darryncampbell-cordova-plugin-intentnpm install @ionic-native/web-intent
Ionic Native Enterprise comes with fully supported and maintained plugins from the Ionic Team. Learn More or if you're interested in an enterprise version of this plugin Contact Us

Supported Platforms

  • Android

Usage

For usage information please refer to the plugin's Github repo.

import { WebIntent } from '@ionic-native/web-intent/ngx';

constructor(private webIntent: WebIntent) { }

...

const options = {
  action: this.webIntent.ACTION_VIEW,
  url: 'path/to/file',
  type: 'application/vnd.android.package-archive'
}

this.webIntent.startActivity(options).then(onSuccess, onError);