Coder Social home page Coder Social logo

capacitor-start-navigation's People

Contributors

ashleymedway avatar dependabot[bot] avatar tysonlist avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

capacitor-start-navigation's Issues

Not working with Capacitor 4

Hi,

I tried installing the plugin inside a Capacitor 4 app on Android. Unfortunately, the app didn't even start. Maybe it needs to be updated to be compatible?

Thanks,
Patrik

Android integration

Android extra step deprecated on sdk 30, you have to do like this:

import com.getcapacitor.BridgeActivity;
import com.servicesight.capacitor.startnavigation.StartNavigationPlugin;

public class MainActivity extends BridgeActivity {
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        registerPlugin(StartNavigationPlugin.class);  
    }
}

Thanks for the plugin!!!

Map selection options

Is it possible to add a selection of maps?
e.g: I prefer to use Google map or Waze on my iOS instead of the Apple Maps

Didn't find class "android.support.design.widget.CoordinatorLayout"

Not too familiar with android these days but it looks like there is an issue with androidx. The latest ionic cli generates using androidx dependencies so this plugin does not work.

https://stackoverflow.com/questions/32838594/error-inflating-class-android-support-design-widget-coordinatorlayout-and-classn/52490825

Won't load and errors with

Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.design.widget.CoordinatorLayout"

Issue with using `address` property (Android/Google maps).

Hi there.

I am having issues with the address property causing the navigation on Android with Google maps to not work at all. Specifically the address I am investigating is Degnevænget 7, 3600 Frederikssund, DK.

Originally I started the navigation like this:

const address = `${this.contact.street}, ${this.contact.postalCode} ${this.contact.city}`;
StartNavigation.launchMapsApp({
  longitude: this.contact.location[0],
  latitude: this.contact.location[1],
  name: address
});

For the most part, this worked with version 4.1.0-alpha. However, on Android with Google maps, this would navigate to Degnevænget 9 instead of Degnevænget 7(probably because the houses are close and destination is based on coords).

Because of this, I switched to version 4.2.0 and started testing with the address property. So now I do this instead:

StartNavigation.launchMapsApp({
  longitude: this.contact.location[0],
  latitude: this.contact.location[1],
  address: {
    street: this.contact.street, // Degnevænget 7
    postalCode: this.contact.postalCode, // 3600
    city: this.contact.city,  // Frederikssund
    state: null,
    country: 'Denmark' // Hardcoded for now, because what we have is countrycode (DK)
  }
});

However, when I do this, the map opens but navigation in the map does not. It opens up in a completely fresh state. 🤨
The console log outputs this:
Skærmbillede 2023-05-09 kl  10 28 37

Modes of transportation options

Hello !

Is it possible to add in the StartNavigationOptions a mode of transportation ?

e.g: I prefer to launch directly the navigation app in cycling mode instead of driving mode.

Thanks a lot !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.