bluetooth lowenergy - BLE iOS background advertising -


is there way "force" ios app (coded ble central) continue perform ble scanning in background if running in foreground? using rssi determine proximity , app must run in background , process rssi levels. note: may or may not know, rssi noisy , needs filtered using many samples possible accurate proximity. have tried connecting , disconnecting app to/from ble peripheral, using approach prevents peripheral advertising while connected the ios app. this, in effect, limits amount of advertising ble peripheral needed other nearby ios devices, ideally, prefer not use method. wish weigh in on question, have access modify or parts of advertising payload ble peripheral.

you cannot force ios app against apple's rules. if want continue scanning ble devices, app needs in foreground state.

alternatively, can monitor ble devices in background. whenever ble device gets close device, limited time scan devices - in background.

let beaconregion = clbeaconregion(proximityuuid: "some uuid", major: 1, minor: 1, identifier: "some identifier") locationmanager.startmonitoring(for: beaconregion) 

however, don't know if fits use case.


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -