Hubro Documentation Help

iOS

The HubroConnect library for iOS provides an integration with the Connect API designed specifically for iOS. Additionally, it allows you to gather data from HealthKit and stream this data to the Hubro backend to the Hubro backend, and integrates caching, as well as other instrumentation that developers would eventually need to implement.

You can integrate this library into your iOS application by adding the package via File -> Add Package Dependency in Xcode.

Install the HubroConnect Swift Package in XCode via File->Add Package Dependency

https://github.com/hubro-platform/hubro-connect-swift-package

Once added to the project, you need to register the newly added package in project settings within Frameworks, Libraries, and Embedded Content section.

The Hubro session which allows you, for example, to authenticate the user, view assigned questionnaires and collect data can be constructed as follows

import hubro_connect var baseUrl: String? var connectToken: String? var session = HubroSessionBuilder(baseUrl: baseUrl, tokenVerifier: connectToken);
Last modified: 07 January 2025