proteansoftware / capacitor-start-navigation Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
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
Hi, I saw that there is a beta version for v5 in NPM: https://www.npmjs.com/package/@proteansoftware/capacitor-start-navigation/v/5.0.0-beta1
I didn't find any announcement or issue in this repository so far on Capacitor v5 support.
Are you planning to release full support soon or are there any outstanding issues that still need to be fixed?
Thanks for the work on this!
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!!!
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
after migration to capacitor V8
we have pb
npm ERR! Could not resolve dependency:
npm ERR! peer @capacitor/core@"^5.0.0" from @proteansoftware/[email protected]
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.
Won't load and errors with
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.design.widget.CoordinatorLayout"
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:
Based on a quick review, it seems possible to support address instead of lat/long for both android & ios.
Is this functionality something you'd be open to adding to this repository/accept a pull request for?
Sources:
https://developer.apple.com/documentation/corelocation/clgeocoder
https://developers.google.com/maps/documentation/urls/android-intents
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 !
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.