{"id":16863544,"url":"https://github.com/vbrazo/update-background-locations","last_synced_at":"2026-03-11T22:43:33.352Z","repository":{"id":114253710,"uuid":"53445447","full_name":"vbrazo/Update-Background-Locations","owner":"vbrazo","description":"A sample iOs example that tracks background locations.","archived":false,"fork":false,"pushed_at":"2016-03-30T03:01:06.000Z","size":132,"stargazers_count":7,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-11T10:00:58.462Z","etag":null,"topics":["background","battery","location","swift","timer","tracker"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vbrazo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-03-08T21:12:09.000Z","updated_at":"2023-07-10T15:39:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"ce0e325e-0015-4fca-8991-3871f231d123","html_url":"https://github.com/vbrazo/Update-Background-Locations","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vbrazo/Update-Background-Locations","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbrazo%2FUpdate-Background-Locations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbrazo%2FUpdate-Background-Locations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbrazo%2FUpdate-Background-Locations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbrazo%2FUpdate-Background-Locations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vbrazo","download_url":"https://codeload.github.com/vbrazo/Update-Background-Locations/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbrazo%2FUpdate-Background-Locations/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30405784,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T22:36:59.286Z","status":"ssl_error","status_checked_at":"2026-03-11T22:36:57.544Z","response_time":84,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["background","battery","location","swift","timer","tracker"],"created_at":"2024-10-13T14:38:58.780Z","updated_at":"2026-03-11T22:43:33.336Z","avatar_url":"https://github.com/vbrazo.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iOS Update Background Locations\nThis is a simple Swift class to provide all the configurations that you need to get background locations. \n \nIt's compatible with the latest Swift syntax if you're using any Swift version prior to 2.0.\n \n# If you want to test:\nClone the project and execute in your simulator.\n \n# How to use in your project:\nFirst add BackgroundTasks.swift and Tracker.swift to your project.\n\u003cBR\u003e\u003cBR\u003e\nInstantiate the class:\u003cBR\u003e\u003cBR\u003e\n```let tracker = LocationController()```\n\u003cBR\u003e\u003cBR\u003e\nTo start the service, configure distanceFilter property. Distance filter is the minimum distance (measured in meters) a device must move horizontally before an update event is generated.:\u003cBR\u003e\u003cBR\u003e\n```tracker.trackingDistance = 100.0```\n\u003cBR\u003e\u003cBR\u003e\nSet the timer to stop the tracker to save battery (seconds):\u003cBR\u003e\u003cBR\u003e\n```tracker.updateLocationTimer = 10.0```\n\u003cBR\u003e\u003cBR\u003e\nSet the timer to restart the manager to save battery (seconds):\u003cBR\u003e\u003cBR\u003e\n```tracker.restartTimer = 5.0```\n\u003cBR\u003e\u003cBR\u003e\nSet the timer to stop the tracker to save battery (seconds):\u003cBR\u003e\u003cBR\u003e\n```tracker.saveBatteryTimer = 5.0```\n\u003cBR\u003e\u003cBR\u003e\nSet the timer to stop the tracker to save battery (seconds):\u003cBR\u003e\u003cBR\u003e\n``` tracker.startLocationTracking() ```\n\u003cBR\u003e\u003cBR\u003e\nDon't forget to add the following lines in your plist file:\u003cBR\u003e\u003cBR\u003e\n\u003cimg src=\"https://github.com/vbrazo/iOS_Update_Background_Locations/blob/master/readme.images/plist_info.png?raw=true\"\u003e\n\u003cBR\u003e\n\n\n# Contributing:\nI encourage you to contribute to this repository.\n  \n# Updated for:\nSwift 2.0 (Xcode 7.3)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvbrazo%2Fupdate-background-locations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvbrazo%2Fupdate-background-locations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvbrazo%2Fupdate-background-locations/lists"}