App Launcher

Contents

Simple Cordova plugin to see if other apps are installed and launch them.

Installation

ionic cordova plugin add cordova-plugin-app-launchernpm install @ionic-native/app-launcher
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
ionic enterprise register --key=YOURPRODUCTKEYnpm install @ionic-enterprise/app-launcher

Supported Platforms

  • Android
  • iOS

Usage

import { AppLauncher, AppLauncherOptions } from '@ionic-native/app-launcher/ngx';
import { Platform } from '@ionic/angular';

constructor(private appLauncher: AppLauncher, private platform: Platform) { }

...

const options: AppLauncherOptions = {
}

if(this.platform.is('ios')) {
  options.uri = 'fb://'
} else {
  options.packageName = 'com.facebook.katana'
}

this.appLauncher.canLaunch(options)
  .then((canLaunch: boolean) => console.log('Facebook is available'))
  .catch((error: any) => console.error('Facebook is not available'));