Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BLE Adv in background mode #6

Open
stich86 opened this issue Dec 24, 2021 · 2 comments
Open

BLE Adv in background mode #6

stich86 opened this issue Dec 24, 2021 · 2 comments

Comments

@stich86
Copy link

stich86 commented Dec 24, 2021

Hi all,

First happy Xmas to everyone!

I'm trying to using the companion app on an iPhone 13 Pro Max with iOS 15.1. When the aap is on foreground the BLE adv are consistent, but when put in background it stops. I've grant all the permission to the app, also enable the Auto Toggle doesn't make any difference.

Is it normal?

Thanks in advance!

@bjw-s
Copy link

bjw-s commented Mar 12, 2022

Wanted to chime in and mention that I am seeing the same behavior on my iPhone 13 running the latest versions of iOS and the companion app.

@mKeRix
Copy link
Owner

mKeRix commented Mar 13, 2022

First off, I'd recommend to keep the auto-toggle off as there are some issues with that feature. I aimed to rewrite it at some point, but didn't get around to it yet for various reasons. As long as you don't reboot the phone the advertisements should keep on running in the background.

One important caveat when using the auto-toggle currently is the location permission setting (as displayed for room-assistant in the Settings app) - this should be set to "Always" and "exact location". The app won't make use of any GPS data, this permission is just required to receive the BLE packets that room-assistant instances send out for this purpose. As said above though, I'd recommend to just keep this disabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants