{"id":15037896,"url":"https://github.com/queeniecplusplus/ios_back_3","last_synced_at":"2026-01-29T13:50:39.047Z","repository":{"id":104588321,"uuid":"333329550","full_name":"QueenieCplusplus/iOS_Back_3","owner":"QueenieCplusplus","description":"to do a iBeacon Sensor feature with sys notification when app is running in background","archived":false,"fork":false,"pushed_at":"2021-01-29T12:28:51.000Z","size":1886,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T13:13:46.702Z","etag":null,"topics":["ble","cllocationmanager","ibeacon","ios11","swift4","swift5","xcode10","xcode12"],"latest_commit_sha":null,"homepage":"https://github.com/QueenieCplusplus/QuickGoThru#apple-ios-swift-溫故愛鳳---計畫復甦","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/QueenieCplusplus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-01-27T06:46:34.000Z","updated_at":"2021-01-29T12:28:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"e25cad4a-b203-461e-be9f-7ad668d64bc5","html_url":"https://github.com/QueenieCplusplus/iOS_Back_3","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FiOS_Back_3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FiOS_Back_3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FiOS_Back_3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FiOS_Back_3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QueenieCplusplus","download_url":"https://codeload.github.com/QueenieCplusplus/iOS_Back_3/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243410445,"owners_count":20286395,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["ble","cllocationmanager","ibeacon","ios11","swift4","swift5","xcode10","xcode12"],"created_at":"2024-09-24T20:36:16.517Z","updated_at":"2026-01-29T13:50:39.006Z","avatar_url":"https://github.com/QueenieCplusplus.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# iOS_Back_3\nto do a iBeacon Sensor feature with sys notification when app is running in background\n\n\n  ![](https://raw.githubusercontent.com/QueenieCplusplus/iOS_Back_3/main/thumbnail.png)\n\n\n1. define K/V in info propert list.\n\n  ![](https://raw.githubusercontent.com/QueenieCplusplus/iOS_Back_3/main/info_property_list.png)\n\n\n2. code in ViewController.\n\n\n        //\n        //  ViewController.swift\n        //  KatesIBeaconBLEapp\n        //\n        //  Created by KatesAndroid on 2021/1/27 PM2 :20 ~\n        //\n\n        import UIKit\n        import CoreBluetooth\n        import CoreLocation\n\n        class ViewController: UIViewController, CLLocationManagerDelegate {\n\n            let cllm = CLLocationManager()\n\n            override func viewDidLoad() {\n                super.viewDidLoad()\n                // after nib.\n\n                cllm.requestAlwaysAuthorization()\n                cllm.delegate = self\n\n                // search for Beacon's UUID, which is 20 bytes.\n                let uuid = UUID(uuidString: \"B9407F30-F5F8-466E-AFF9-25556B57FE6D\")\n                let region = CLBeaconRegion(uuid: uuid!, identifier: \"Kates Region\")\n\n                // this app helps to detect info of nearby beacon device.\n                // cllm.startRangingBeacons is deprecated.\n                cllm.startMonitoring(for: region)\n\n                // to know how many and what are they\n                // matters with major, minor, accury\n                //cllm.startRangingBeacons(satisfying: \u003c#T##CLBeaconIdentityConstraint#\u003e)\n\n            }\n\n            // when app running at background.\n            // method below can be called.\n\n            func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {\n                print(\"Enter\\(region.identifier)\")\n            }\n\n            func locationManager(_ manager: CLLocationManager, didExitRegion region: CLRegion) {\n                print(\"Exit\\(region.identifier)\")\n            }\n\n\n        }\n        \n      ref: https://medium.com/彼得潘的-swift-ios-app-開發問題解答集/swift-ibeacon-app-程式設計-cd89f59f735b\n\n\n* setup for allowing BLE app running in Background.\n\n   https://github.com/QueenieCplusplus/iOS_Back_16/blob/main/README.md\n   \n   ![](https://raw.githubusercontent.com/QueenieCplusplus/iOS_Back_3/main/allow%20background%20mode.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqueeniecplusplus%2Fios_back_3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqueeniecplusplus%2Fios_back_3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqueeniecplusplus%2Fios_back_3/lists"}