How can I block system alert and show my custom screen instead

213 views Asked by At

I make an app that can connect to ble device. My ble device required pairing. Now when I connect to device - system shows me "Bluetooth Pairing Request" alert. But I wont to make custom code input screen for pairing action. How can I block system alert and show my custom screen instead.

1

There are 1 answers

0
Paulw11 On BEST ANSWER

The pairing (actually bonding) process is handled by iOS; there is no facility to allow your app to handle the pairing process.

Once you initiate an action on a characteristic that requires encryption (and therefore bonding) your app will resign the active state and the system pairing dialog will be presented to the user. Once they have completed (or cancelled) the pairing process then your app will resume the active state.