Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-67042

Provide means for iOS app (central role) to scan and conect to peripherals in background

    XMLWordPrintable

    Details

    • Type: User Story
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.11.0 Alpha
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      iOS/tvOS/watchOS

      Description

      iOS apps running in the background experience limitations with regards to available functionality.

      As long as the background app is connected to a peripheral it can continue to read characteristics and receives notifications. However when the peripheral moves out of reach, the app must change to scanning mode and re-establish the connection to the peripheral. Scanning for peripherals can be done via iOS in two ways:

      • General service scan for any service uuid
      • Targeted scans which require the user to specifiy the uuid of the to-be-found service

      QtBluetooth currently employs the first option. The second option is not used. According to the official documentation (and confirmed by testing) the general scanning mode does not work in the background.

      QLowEnergyController requires public API to permit the user to set the service uuid for which to scan while in the background.

      An example of such a use case is an app that connects to BTLE peripherals while at home and reconnects to the home device when the user returns home after having left for a certain amount of time.

       

      This problem is highlighted by https://medium.com/arkulpa/ios-stay-connected-to-an-external-ble-device-as-much-as-possible-699d434846d2

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              • Assignee:
                tpochep Timur Pocheptsov
                Reporter:
                ablasche Alex Blasche
                PM Owner:
                Harald Kjølberg
                RnD Owner:
                Alex Blasche
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes