Launch Navigator
Requires Cordova plugin: uk.co.workingedge.phonegap.plugin.launchnavigator. For more info, please see the LaunchNavigator plugin docs.
https://github.com/dpa99c/phonegap-launch-navigator
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 uk.co.workingedge.phonegap.plugin.launchnavigator
$ npm install @awesome-cordova-plugins/launch-navigator
$ ionic cap sync
$ ionic cordova plugin add uk.co.workingedge.phonegap.plugin.launchnavigator
$ npm install @awesome-cordova-plugins/launch-navigator
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
- Windows
- Windows Phone 8
Usage
React
Learn more about using Ionic Native components in React
Angular
Please refer to the plugin's repo for detailed usage. This docs page only explains the Native wrapper.
import { LaunchNavigator, LaunchNavigatorOptions } from '@awesome-cordova-plugins/launch-navigator/ngx';
constructor(private launchNavigator: LaunchNavigator) { }
...
let options: LaunchNavigatorOptions = {
start: 'London, ON',
app: LaunchNavigator.APPS.UBER
}
this.launchNavigator.navigate('Toronto, ON', options)
.then(
success => console.log('Launched navigator'),
error => console.log('Error launching navigator', error)
);