I am getting scanning gap 5-8 sec when application is in background. In that period, I am not getting BLE device is in scan I have used service and TimerTask for it.
Related
An Ionic app that scans for BLE tags while running in the background.
The problem is that the app stops scanning for BLE devices after running for more than an hour.
I would like the app to run for a long time without being killed.
Also if the phone has a lock screen password the app stops scanning for BLE devices sooner than when the phone doesn't have a lock screen password
Is there any difference between- An iphone app going background and phone is getting auto locked
I am developing an iPhone app
My app resumes its uploading process when it return from background
But it is not working if unlocked from auto locked
What is the issue..I have tried alot,but could not figure it out..Please help me
iOS shuts down WiFi when the screen is off - which is good as far as battery savings.
So please check the wifi connection while uploading..
You can restrict the auto-lock or device resume through programmatically while uploading and enable auto-lock programmatically after done the upload process .
If the device is connected to a power source, then Wifi remains enabled, even if the device goes to sleep. If the device is not connected to a power source, then Wifi is disabled once the device goes to sleep.
This of course was by design in an effort to reduce battery consumption
I'm having trouble figuring out how to receive Bluetooth LE peripheral device advertisements while my app is running in the background. That is, when my app is in the background it never reaches the didDiscoverPeripheral() method--where the advertisement lies.. Does anyone know how I need to configure my app such that I can get Bluetooth LE advertisements while my app is in the background? Can this be done with a thread polling while my app is in the background? Note: I want to get advertisements from all BLE devices, not a defined number of BLE devices.
Appreciate the help,
Casey
I am doing this from my app.
in background mode CoreBluetooth is said to be up to 55 times slower than the advertisement interval of the peripheral. To speed it up I programmed the peripheral to advertise every 20ms for the first 30s.
Also you must define "Requires background mode" with "App communicates using CoreBluetooth" in your project Targets -> Info.
It does take a while for the app to find peripherals in the background mode.
Im working on a navigation app that requires active wifi access (due to its connectivity to a hardware device using wifi), my trouble is that when the app is in the background the wifi scanning interval is dropping considerably and at some point the app will scan for wifi connectivity only every 5 minutes.
Any ideas of how it would be possible to trigger a wifi scan more often?
Any lead appreciated!
Thanks!
Go for Reachability.h class and use kReachabilityChangedNotification defined in the class.
My application is continuously running in background and send's user location every 10 minutes. I am testing my application in iPhone 4S. Application is running good in background but the the problem is that after some time my wifi goes to sleep and application starts sending user location via sim network.
Is there any way such that wifi never goes to sleep in iPhone 4S. Is that Some thing can I do by coding?