Web Intent


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



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!

Ionic Web Intent插件的安装(Installation)

ionic cordova plugin add com-darryncampbell-cordova-plugin-intent npm install @ionic-native/web-intent
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
ionic enterprise register --key=YOURPRODUCTKEY npm install @ionic-enterprise/web-intent

Ionic Web Intent插件支持的平台(Supported Platforms)

  • Android

Ionic Web Intent插件的用法(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);