-
Notifications
You must be signed in to change notification settings - Fork 505
permission for background bluetooth usage #40
Conversation
Thanks @felix-dumit! I've never worked with bluetooth before but it seems this is similar to location in that you need to set a few plist values in the project to get the permission to show up. Can you add these requirements to the readme near the location information? |
The string value with the reason in the plist is optional, but you have to enable the 'acts as Bluetooth accessory' background mode in capabilities. I'll add that to the readme later. — On Sun, Jun 21, 2015 at 1:45 PM, nickoneill notifications@github.com
|
I just noticed an issue with my current implementation. Even if the user rejects the system permission alert it will show up as allowed. Since iOS doesn't need a permission for bluetooth to run in the foreground, just by presenting the alert bluetooth will be powered on and it will detect that it was accepted. |
Using both bluetoothManager's status (powered on, off) And the authorization status from the permission to calculate the bluetoothStatus.
Fixed the previous issue on d182b62. |
Thanks @felix-dumit, the readme and the status work look good! Let me know when you're done with your additions and we'll get this pulled in. |
I think I'm done then, everything is working as expected for me |
A couple things:
|
Response to your remarks:
|
Also just in case you run into it as well: If you go to the settings and toggle the bluetooth permission the app will get a |
Thanks! This looks great now. |
#21 - Implemented permission for using Bluetooth Peripheral Manager in the background