In a sports app, when the user completes a sports activity, data transfer from the device should be stopped and the Bluetooth connection should be terminated. This preserves the device's battery and makes the app ready to connect to other devices.
1. Go to the UI Design module.
2. When this button is clicked, add the following action from the + ADD ACTION menu to disconnect the connection:
3. To send a notification to the user as the next action:
With this flow, when the user clicks the “Disconnect” button, the Bluetooth connection with the device is terminated and an informative message is displayed on the screen.