carp-dk / carp-dk/carp.sensing-flutter

Impossible to scan for Bluetooth devices on iOS when screen is off or app is in bacground.

Open
#320 2 comments 1 reaction 1 assignee Claimed by @bardram View on GitHub
documentation
Dominant language
Dart
Stars
84
Forks
31
Avg merge
1d 8h
Merged PRs (30d)
6

Description

According to iOS documentation and forums (e.g. https://developer.apple.com/forums/thread/652592), it is impossible to do a general Bluetooth scan when the screen is off or the app is in background. This will simply result in an empty scan. We also see this in our data. This probably should be added to the documentation of the carp_connectivity_package (https://pub.dev/packages/carp_connectivity_package).

It should however be possible to scan for specific devices when the screen is off. If I find the time, I can try to see if this can be done in flutter_blue_plus . Many researchers want to use the Bluetooth scan to test if a participant is near their partner. For this, a scan to specific device would suffice. (However, I don't expect to find enough time for a deep dive in the coming months :) )

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.