dpa99c / phonegap-launch-navigator

Phonegap/Cordova plugin which launches native route navigation apps for Android, iOS and Windows
369 stars 131 forks source link

Vue Support? #274

Closed sbellver closed 2 years ago

sbellver commented 2 years ago

Bug report

CHECKLIST

Current behavior:

I install the plugin in my current ionic 6 app (Vue)

npm install @awesome-cordova-plugins/launch-navigator
npm install @awesome-cordova-plugins/core

Then I have an error in console:

[vue-cli-service] Module not found: Error: Can't resolve '@angular/core' in '/.../node_modules/@awesome-cordova-plugins/launch-navigator/ngx'

Expected behavior:

Can use it in ionic with Vue, as we use it with Angular

GrRivero commented 2 years ago

@sbellver Did you get a solution or what library did you use?

sbellver commented 2 years ago

Finally we use a link instead. Works on PWA and in Capacitor

        text: 'Google Maps',
        icon: mapOutline,
        handler: () => {
          window.open("https://www.google.com/maps/search/?api=1&query="+destination)
        }
      })

      actionLinks.push({
        text: 'Waze',
        icon: carSportOutline,
        handler: () => {
          window.open("https://waze.com/ul?ll="+destination+"&navigate=yes&z=10");
        }
      });

If mobile have the apps installed, it open it directly

dpa99c commented 2 years ago

This plugin doesn't depend on Angular is has no dependencies.

However you installed it indirectly via the @awesome-cordova-plugins bundle. The name of this package on npm is uk.co.workingedge.phonegap.plugin.launchnavigator