Usage Scenario: Automatically Connect When Device is Nearby

In a health monitoring application, the user has previously registered their blood pressure device with the application. When the application is reopened or the device search screen is loaded, the system checks whether the registered device is within range. If the device is within range, the connection is established automatically, so the user does not have to perform any additional actions.

1. When the app is opened or the device search screen is loaded:

  • OnPageInit can be set as the trigger. Alternatively, a Button element can be added and triggered with OnClick.

2. Action Sequence:

  • Custom → Kuika → SavedDeviceAvailable_bluetooth

(Checks if the registered device is nearby.)

  • Conditional Action: If Then Else
    • If the device is within range:
      • Custom → Kuika → Connect_bluetooth
      • Notify
        • title: “Notification”
        • message: “Device connection is being initiated.”
        • type: “info”
    • Otherwise:
      • Notify
        • title: “Notification”
        • message: “The registered device is not nearby.”
        • type: “warning”

With this flow, the user can quickly take measurements without having to connect the device. The user experience is simplified and the need for manual operations is minimized.