You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Agree. I tried the background task approach that was proposed in #4, and it worked. I think that's the max we can get out of the current iOS. I'll update my own repo https://github.com/mash/BLE-Proximity with my findings. There seems no activity here...
This is a theoretical issue, I haven't tested this but should happen.
Here you're trying to periodically start and stop scanning.
https://github.com/opentrace-community/opentrace-ios/blob/master/OpenTrace/Bluetrace/CentralController.swift#L103
When the app goes background, right after stopScan is called, background scanning will not work.
See https://developer.apple.com/library/archive/documentation/NetworkingInternetWeb/Conceptual/CoreBluetooth_concepts/CoreBluetoothBackgroundProcessingForIOSApps/PerformingTasksWhileYourAppIsInTheBackground.html#//apple_ref/doc/uid/TP40013257-CH7-SW9
Was this, scanning start/stop dance proved to be effective ?
As I understand iOS can be scanning and advertising at the same time without a problem.
The text was updated successfully, but these errors were encountered: