我正在尝试使用 Ionic、Capacitor 和 Angular 开发移动应用程序。我想实现一项功能,即使在应用程序关闭后,我也可以在后台跟踪用户的位置。
我尝试过使用像https://github.com/capacitor-community/background-geolocation这样的包,但我没有成功。
有一个很棒的插件可以做到这一点:capacitor-background-geolocation
我为电容器制作了这个插件我希望它对你有用
https://github.com/alicarlo/Capacitor-BackGround-Run-GPS-by-Alicarlo