App Availability


This plugin allows you to check if an app is installed on the user's device. It requires an URI Scheme (e.g. twitter://) on iOS or a Package Name (e.g on Android.

Ionic 判断应用是否安装 App Availability插件的安装(Installation)

ionic cordova plugin add cordova-plugin-appavailability npm install @ionic-native/app-availability

Ionic 判断应用是否安装 App Availability插件支持的平台(Supported Platforms)

  • Android
  • iOS

Ionic 判断应用是否安装 App Availability插件的用法(Usage)

import { AppAvailability } from '@ionic-native/app-availability';
import { Platform } from 'ionic-angular';

constructor(private appAvailability: AppAvailability, private platform: Platform) { }


let app;

if ('ios')) {
  app = 'twitter://';
} else if ('android')) {
  app = '';

    (yes: boolean) => console.log(app + ' is available'),
    (no: boolean) => console.log(app + ' is NOT available')