0.0.2 • Published 7 months ago
open-navigation v0.0.2
open-navigation
Capacitor plugin to open natively an navigation app installed on the OS
Install
npm install open-navigation
npx cap sync
Add to capacitor.config.ts the following line:
plugins: {
OpenNavigationPlugin: {},
...
}
And in Info.plist add the following lines:
<dict>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>maps</string>
...
</array>
...
</dict>
API
openNavigationApp(...)
openNavigationApp(options: { latitude?: string; longitude?: string; address?: string; }) => Promise<void>
Param | Type |
---|---|
options | { latitude?: string; longitude?: string; address?: string; } |