Below you’ll find a quick demo on how to get GPS coordinates in your Ionic 4 project using Capacitor.
在下面,您将找到有关如何使用Capacitor在Ionic 4项目中获取GPS坐标的快速演示。
If you have not heard of Capacitor, it’s the replacement for Cordova from the Ionic team. It focuses on providing native functionality and plugins for Progressive Web Apps (PWAs), iOS and Android. It’s the future of hybrid mobile development.
如果您还没有听说过电容器,那么它将代替Ionic团队的Cordova。 它专注于为渐进式Web应用程序 (PWA),iOS和Android提供本机功能和插件。 这是混合移动开发的未来。
安装 (Installation)
Start by creating your Ionic project using the CLI:
首先使用CLI创建Io