On an application screen, the user will be asked to grant Bluetooth permission. When the user clicks the “Scan Devices” button, a warning message will be displayed if the application does not have Bluetooth permission.
1. Go to the UI Design module.
2. To check Bluetooth permission when this button is clicked, add the following action from the + ADD ACTION menu:
3. Action configuration:
Enter the action parameters as follows:
Once these steps are complete, when the user clicks the button, the application checks whether Bluetooth permission has been granted. If permission has not been granted, a warning message is displayed on the screen.