0.0.2 • Published 7 months ago

open-navigation v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

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>
ParamType
options{ latitude?: string; longitude?: string; address?: string; }

0.0.2

7 months ago

0.0.1

8 months ago