Passcode window appears behind DeviceSelector window when application is agent
Passcode window appears behind DeviceSelector window when application is agent
- Subject: Passcode window appears behind DeviceSelector window when application is agent
- From: Elliot Sinyor <email@hidden>
- Date: Tue, 05 Nov 2013 11:01:09 -0500
I have an application with a status bar icon that connects to a Bluetooth device. The application is set as an agent so that no icon appears in the dock or the application switcher.
The problems is that when first pairing with a device, the passkey entry window appears behind the window that the IOBluetoothDeviceSelectorController creates. There is no indication to the user that the passkey window is waiting there unless they know to move the Device selector window. I've tried changing the frame of the window using [deviceSelector.window setFrame:...] to no avail.
Setting "Application is agent" to false in the info plist is the only thing that causes it to behave as expected. Am I missing something, or is this a bug that I should report?
Which leads to a second question.
Is there a way to avoid the whole passkey issue while still using IOBluetoothDeviceSelectorController? The passkey for the device is always the same.
I've noticed IOBluetoothPasskeyDisplay but I can't figure out how to use it in conjunction with IOBluetoothDeviceSelectorController. I'd like to avoid having to recreate the functionality of IOBluetoothDeviceSelectorController if at all possible. How does IOBluetoothPairingController fit into all this?
thanks
Elliot
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden