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?
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#
- Capacitor
- Cordova
- Enterprise
$ npm install cordova-plugin-app-launcher $ npm install @ionic-native/app-launcher $ ionic cap sync$ ionic cordova plugin add cordova-plugin-app-launcher $ npm install @ionic-native/app-launcher Ionic 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
- 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'));