应用程序被杀死时是否可以跟踪用户的位置(Flutter)

Is it possible to track User's Location when app is killed (Flutter)

我正在尝试在应用程序被终止时跟踪用户的位置,并将该位置(纬度和经度)发送到 Flutter 中的数据库(Firestore)。

我是新手,所以我不知道该怎么做。如果有人能在这方面帮助我,我将不胜感激。

非常感谢!!

你可以试试: flutter_background_geolocation

试试这个 background_locator,我认为它是免费的,而且也可以在后台运行