更新时间:2022-12-26 12:44:15
我过去因为那个头痛而通过了,一个跨平台应用程序,每 x 秒更新一次位置,它应该在后台运行.我在 Xamarin Forms 中开发了一个模板,支持后台位置更新、后台权限,这些功能需要根据操作系统(iOs/Android)进行调整.
I passed for that headache in the past, a cross-platform app that update location every x seconds and it should run in the background. I had developed a template in Xamarin Forms that support Background Location Updates, Background permissions, these capabilities need to be adjusted depending on the OS (iOs/Android).
为此,我使用了 Xamarin Essentials 和消息中心.请让我知道该模板是否适合您的需求.谢谢.
I used Xamarin Essentials and Messaging Center for this purpose. Please let me know if the template works for your needs. Thanks.