Configuration

Capabilities

In order to take advantage of the full features of the SDK and obtain the best results, all capabilities should be enabled, however we believe that developers should be able to choose the capabilities which suit their needs best. The following capabilities can be enabled.

The Location capability is essential to be able to gather useful data so ensure that it is enabled and that the permission is set to "Always Allow"

Capability

Description

Location

This is the minimum required capability to gather useful information.

default: false

Motion

This provides us with information regarding the user daily motion activities (driving, running, walking, etc)

default: false

Bluetooth

This provides us with information regarding devices that may be connected to the user's phone like smartwatches, headphones, etc.

default: false

UX Events

The UX events capability allows you to gather information when certain actions, defined by you, have been triggered in your app. It can help you understand your users' behavior on how they interact with your app and can be useful to track the metrics that are important for you.

default: false

Permissions

Permissions are not requested by the SDK so that the App developer can have control over when and how to prompt the user for the specific permissions. This allows for a better approach to onboard the user and explain the advantages of giving the app the required permissions.

Permissions can be set during the SDK initialization or set at a later time if their values are changed.

PermissionType Enum

Description

location

default: false

bluetooth

default: false

motion

default: false

func updatePermissions(permissionType: PermissionType, permissionStatus: Bool, completion: @escaping (_ status : HabitStatusCode) -> Void)

Last updated

Was this helpful?