Skip to main content

App Launcher

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

https://github.com/nchutchind/cordova-plugin-app-launcher

Stuck on a Cordova issue?

Don't waste precious time on plugin issues.

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic’s experts offer premium advisory services for both community plugins and premier plugins.

Installation#

$ npm install cordova-plugin-app-launcher $ npm install @ionic-native/app-launcher $ ionic cap sync

Supported Platforms#

  • Android
  • iOS

Usage#

React#

Learn more about using Ionic Native components in React

Angular#

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'));