All Projects → shernandezp → XamarinForms.LocationService

shernandezp / XamarinForms.LocationService

Licence: MIT license
Xamarin Background Services, Background Location Updates, Location Updates, BroadCastReceiver

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to XamarinForms.LocationService

bdapis
Rest API service. Build with NodeJS, Express, MongoDB
Stars: ✭ 65 (+6.56%)
Mutual labels:  location, location-services
Lost
A drop-in replacement for Google Play services location APIs for Android
Stars: ✭ 327 (+436.07%)
Mutual labels:  location, location-services
ReminderPro
ReminderPro(location, note, voice recording)
Stars: ✭ 27 (-55.74%)
Mutual labels:  location, location-services
location-api-sl
This API can be use to all developers to get location details of Sri Lanka 🇱🇰 including major cities, sub areas, districts and Provinces. ⛳️
Stars: ✭ 35 (-42.62%)
Mutual labels:  location, location-services
Placepicker
Free Android Map Place Picker alternative using Geocoder instead of Google APIs
Stars: ✭ 126 (+106.56%)
Mutual labels:  location, location-services
surger
⚡ Is there surge pricing around me right now?
Stars: ✭ 20 (-67.21%)
Mutual labels:  location, location-services
iOS-MapKit-Tutorial
iOS MapKit Getting Started
Stars: ✭ 24 (-60.66%)
Mutual labels:  location, location-services
EasyWayLocation
This library contain all utils related to google location. like, getting lat or long, Address and Location Setting dialog, many more...
Stars: ✭ 142 (+132.79%)
Mutual labels:  location, location-services
Hrcarmarkeranimation
This android library is helpful for google map marker animation with Smooth turn and movement.
Stars: ✭ 52 (-14.75%)
Mutual labels:  location, location-services
Live App Android
Build live location sharing in your Android app
Stars: ✭ 681 (+1016.39%)
Mutual labels:  location, location-services
pinpoint
🌎 A python script for finding your Mac.
Stars: ✭ 56 (-8.2%)
Mutual labels:  location, location-services
Corelocationcli
Command line program to print location information from CoreLocation
Stars: ✭ 138 (+126.23%)
Mutual labels:  location, location-services
android
Where you can find everything Android from Mapzen
Stars: ✭ 106 (+73.77%)
Mutual labels:  location, location-services
aic-mobile-ios
Art Institute of Chicago Official Mobile App
Stars: ✭ 29 (-52.46%)
Mutual labels:  location, location-services
SimpleLocationGetter
No description or website provided.
Stars: ✭ 21 (-65.57%)
Mutual labels:  location, location-services
Rxlocation
🗺 [DEPRECATED] Reactive Location APIs Library for Android and RxJava 2
Stars: ✭ 503 (+724.59%)
Mutual labels:  location, location-services
Openlocate Android
Stars: ✭ 136 (+122.95%)
Mutual labels:  location, location-services
React Native Android Location Services Dialog Box
React Native Android Location Services Dialog Box
Stars: ✭ 175 (+186.89%)
Mutual labels:  location, location-services
svelte-mapbox
MapBox Map and Autocomplete components for Svelte (or Vanilla JS)
Stars: ✭ 267 (+337.7%)
Mutual labels:  location
HackerNews
A .NET MAUI app for displaying the top posts on Hacker News that demonstrates text sentiment analysis gathered using artificial intelligence
Stars: ✭ 184 (+201.64%)
Mutual labels:  xamarin-forms

Background Location Service

XamarinForms.LocationService is an application that refreshes every n seconds GPS location. For years I have been working developing mobile apps that require location features; hopefully, the current project will save you some time in regarding service and location management in your Xamarin application for Android and iOS.

  • Location Updates
  • Location Permissions Management
  • Background Processing Management

For the documentation related to the Background Service in Android/iOs, you can refer to this tutorial. That was the basis of how I started to build a solution of periodic location updates.

Components used

  • Xamarin.Essentials
  • MessagingCenter
  • CLLocationManager

Image

I have updated the application to Xamarin 5. It seems everything is working well until now. So far the upgrade only required 2 things:

Android:

  • To add the "ACCESS_BACKGROUD_LOCATION" permission.

  • To add using of AndroidX.Core.App for the NotificationHelper (It's required for the NotificationCompat.Builder).

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

IOs:

None.

New features:

  • Android: As long as the user opens the application, and starts the service only once, it will be always up, even after rebooting the device.
  • iOS: As long as the application is open and the user has started the service, it will be up. If the user closes the applications or reboots the device, the service will stop. I haven't found a way to keep the service always up. (Other Native applications can keep a service always up, for example here ).

Feel free to use the code in your project; your suggestions are more than welcome!!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].