项目作者: shernandezp

项目描述 :
Xamarin Background Services, Background Location Updates, Location Updates, BroadCastReceiver
高级语言: C#
项目地址: git://github.com/shernandezp/XamarinForms.LocationService.git
创建时间: 2020-08-31T02:58:03Z
项目社区:https://github.com/shernandezp/XamarinForms.LocationService

开源协议:MIT License

下载


Background Location Service

XamarinForms.LocationService is an application that refreshes GPS location every n seconds. Over the years, I’ve been developing mobile apps requiring location features. Hopefully, this project will save you time regarding service and location management in your Xamarin Net application for Android and iOS.

  • Location Updates
  • Location Permissions Management
  • Background Processing Management

For documentation related to the Background Services in Android/iOS, you can refer to this tutorial. It served as the basis for how I started to build a solution for periodic location updates.

For migrating from Xamarin.Forms to MAUI, you can follow this link

The application has been migrated to MAUI.

Components used

  • MAUI
  • CLLocationManager

    Image

Android:

“Be aware that you might need to adjust battery saver settings on some devices manually to allow the application to continue working in the background.”