We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0c768e4 + 39f1a96 commit 011f4d6Copy full SHA for 011f4d6
Analytics/Helpers/SEGBluetooth.m
@@ -28,7 +28,10 @@ - (id)init {
28
29
_queue = dispatch_queue_create("io.segment.bluetooth.queue", NULL);
30
31
- if (&CBCentralManagerOptionShowPowerAlertKey != NO) {
+ // Reading the address inline fails on iOS 6, must use a temporary
32
+ // variable to compare.
33
+ NSInteger addr = &CBCentralManagerOptionShowPowerAlertKey;
34
+ if (addr != 0) {
35
_manager = [[centralManager alloc] initWithDelegate:self queue:_queue options:@{ CBCentralManagerOptionShowPowerAlertKey: @NO }];
36
} else {
37
_manager = [[centralManager alloc] initWithDelegate:self queue:_queue];
0 commit comments