I was looking to integrate geolocation feature in my ionic v5 app. However I stumbled upon two divergent ways to do this, both specified in the official documentation:
- Ionic native: This page comes first in search. It provides a link to cordova-plugin-geolocation on Github.
- Capacitor geolocation API: Encountered this when reading about capacitor. This page was at the bottom in search results when I googled for “ionic geolocation”.
Bottom line, which is the better way to get geolocation in Ionic? If capacitor is the spiritual successor of Cordova, why does Ionic documentation still recommend Cordova for native features?