CBCentralManagerOptionShowPowerAlertKey on iOS 11?
site_archiver@lists.apple.com Delivered-To: bluetooth-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:from:date:message-id:subject:to; bh=EZkwr8FdJdOKUxPt+VhV756v3GFfI4bGRz42gPO1+3s=; b=bUamtTokOWBXwC9zODSTKhypd0sJ/e0dgqDPSWIyJMlzpQUJ8fszxUxInWgRuw39JW EMA/VHpoGgctuswi/3n90cFFTDccxgO61aJoM0k240zjZLOSChIC4FBgAZE+15Qdf9Bi BFwT5+3Zd146CZ7WNJKmG8i1gpz6z+Idf6G7LQxM3O3XGBpPzwtZkdiiFhsUiGKgwOCN sDa98iZyZMrO/lBwutlqLoReksrAZBofQA1pQcyhKZ7Tejqese2aXpmKEYH1vs/As5ax a1WJE/yt++TpCHOqiR0/8iZVk5h6ImRbBgiup4vo9pwahuWbCK8R87Gp+f9moCdItMT9 M2Xg== We use the following code when Bluetooth is turned off to show the system prompt to enable Bluetooth: NSDictionary *options = @{CBCentralManagerOptionShowPowerAlertKey: @(YES)}; CBCentralManager *annoyingPromptOnlyManager = [[CBCentralManager alloc] initWithDelegate:self queue:nil options:options]; [annoyingPromptOnlyManager scanForPeripheralsWithServices:nil options:nil]; [annoyingPromptOnlyManager stopScan]; annoyingPromptOnlyManager = nil; It looks like this is no longer working on iOS 11; no system alert is displayed. Is this intentional and is there a replacement? If not, what's the current best practice to prompt users to turn on Bluetooth? Thank you, Chase _______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/bluetooth-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Chase Acton